protected void BtnCheck_Click(object sender, EventArgs e) { if (GridView1.Rows.Count ==0) { Label1.Visible = true; Label1.Text = "CLICK NEW EMPLOYEE TO REGISTER PLEASE!!"; HyperLink1.Visible = true; } else { SqlDataAdapter da = new SqlDataAdapter("select empno,Namee from employee where Namee='" + TextBox1.Text + "'", con); DataSet ds = new DataSet(); da.Fill(ds, "employee"); DataView dv = new DataView(ds.Tables["employee"]); GridView1.DataSource = dv; GridView1.DataBind(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)