Exemplo n.º 1
0
 protected void lbuRefresh_Click(object sender, EventArgs e)
 {
     ClearData();
     ClassMonth m = new ClassMonth();
     DataTable dt = m.GetMonth("", "");
     GridView1.DataSource = dt;
     GridView1.DataBind();
     SetViewState(dt);
 }
Exemplo n.º 2
0
 protected void lbuSearch_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(txtSearchMonthNameSmall.Text) && string.IsNullOrEmpty(txtSearchMonthNameFull.Text))
     {
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('กรุณากรอก คำค้นหา')", true);
         return;
     }
     else
     {
         ClassMonth m = new ClassMonth();
         DataTable dt = m.GetMonth(txtSearchMonthNameSmall.Text, txtSearchMonthNameFull.Text);
         GridView1.DataSource = dt;
         GridView1.DataBind();
         SetViewState(dt);
     }
 }
Exemplo n.º 3
0
 void BindData1()
 {
     ClassMonth m = new ClassMonth();
     DataTable dt = m.GetMonth(txtSearchMonthNameSmall.Text, txtSearchMonthNameFull.Text);
     GridView1.DataSource = dt;
     GridView1.DataBind();
     SetViewState(dt);
 }
Exemplo n.º 4
0
 void BindData()
 {
     ClassMonth m = new ClassMonth();
     DataTable dt = m.GetMonth("", "");
     GridView1.DataSource = dt;
     GridView1.DataBind();
     SetViewState(dt);
 }