hello all ,
i have a botton , and the code behind it as below :
protected void btnView_Click(object sender, EventArgs e)
{
SqlDataAdapter sda = new SqlDataAdapter("Select * from tblMain", conn);
DataTable dt = new DataTable();
sda.Fill(dt);
gv2.DataSource = dt;
conn.Close();
}
when i run the web page and click the btnview .. the page is still empty ?!!
why is that
the other question is :
if i want to refresh the data of the gv2, automatically after ading data to it how to do it ?
regards