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