<pre> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { } } protected void Button1_Click(object sender, EventArgs e) { try { con.Open(); SqlCommand cmd = new SqlCommand("select * from bind", con); cmd.CommandType = CommandType.Text; SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); da.Fill(ds, "bind"); GridView1.DataSource = ds.Tables["bind"]; ; GridView1.DataBind(); } catch { Response.Write("<script>alert('No record Found')</script>"); }
GridView
UpdatePanel
Trigger
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)