protected void lbuRefresh_Click(object sender, EventArgs e) { ClearData(); ClassClanInsignia ci = new ClassClanInsignia(); DataTable dt = ci.GetClanInsignia(""); GridView1.DataSource = dt; GridView1.DataBind(); SetViewState(dt); }
protected void lbuSearch_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(txtSearchClanInsigName.Text)) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('กรุณากรอก คำค้นหา')", true); return; } else { ClassClanInsignia ci = new ClassClanInsignia(); DataTable dt = ci.GetClanInsignia(txtSearchClanInsigName.Text); GridView1.DataSource = dt; GridView1.DataBind(); SetViewState(dt); } }
void BindData1() { ClassClanInsignia ci = new ClassClanInsignia(); DataTable dt = ci.GetClanInsignia(txtSearchClanInsigName.Text); GridView1.DataSource = dt; GridView1.DataBind(); SetViewState(dt); }
void BindData() { ClassClanInsignia ci = new ClassClanInsignia(); DataTable dt = ci.GetClanInsignia(""); GridView1.DataSource = dt; GridView1.DataBind(); SetViewState(dt); }