Пример #1
0
 protected void lbuRefresh_Click(object sender, EventArgs e)
 {
     ClearData();
     ClassBlood b = new ClassBlood();
     DataTable dt = b.GetBlood("");
     GridView1.DataSource = dt;
     GridView1.DataBind();
     SetViewState(dt);
 }
Пример #2
0
 protected void lbuSearch_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(txtSearchBloodName.Text))
     {
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('กรุณากรอก คำค้นหา')", true);
         return;
     }
     else
     {
         ClassBlood b = new ClassBlood();
         DataTable dt = b.GetBlood(txtSearchBloodName.Text);
         GridView1.DataSource = dt;
         GridView1.DataBind();
         SetViewState(dt);
     }
 }
Пример #3
0
 void BindData1()
 {
     ClassBlood b = new ClassBlood();
     DataTable dt = b.GetBlood(txtSearchBloodName.Text);
     GridView1.DataSource = dt;
     GridView1.DataBind();
     SetViewState(dt);
 }
Пример #4
0
 void BindData()
 {
     ClassBlood b = new ClassBlood();
     DataTable dt = b.GetBlood("");
     GridView1.DataSource = dt;
     GridView1.DataBind();
     SetViewState(dt);
 }