protected void Button1_Click(object sender, EventArgs e)
{
SqlDataAdapter da = new SqlDataAdapter("select * from empupload", sqlconn);
DataSet ds = new DataSet();
da.Fill(ds);
if (ds.Tables[0].Rows.Count>0)
{
GridView1.DataSource = ds;
GridView1.DataBind();
Label2.Visible = false;
}
else
{
Label2.Visible = true;
Label2.Text = "No Records To Display";
}
}