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