protected void lbuSubmit_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(txtInsertCountryName.Text))
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('กรุณาใส่ ชื่อประเทศ')", true);
                return;
            }
            ClassCountry c = new ClassCountry();
            c.COUNTRY_TH = txtInsertCountryName.Text;

            if (c.CheckUseCountryName())
            {
                c.InsertCountry();
                BindData();
                ClearData();
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('เพิ่มข้อมูลเรียบร้อย')", true);
            }
            else
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('ข้อมูลที่จะเพิ่ม มีอยู่ในระบบแล้ว !')", true);
            }
        }
        protected void modUpdateCommand(Object sender, GridViewUpdateEventArgs e)
        {
            Label lblCountryIDEDIT = (Label)GridView1.Rows[e.RowIndex].FindControl("lblCountryIDEDIT");
            TextBox txtCountryNameEDIT = (TextBox)GridView1.Rows[e.RowIndex].FindControl("txtCountryNameEDIT");

            ClassCountry c = new ClassCountry(Convert.ToInt32(lblCountryIDEDIT.Text), txtCountryNameEDIT.Text);

            if (c.CheckUseCountryName())
            {
                c.UpdateCountry();
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('อัพเดทข้อมูลเรียบร้อย')", true);
                GridView1.EditIndex = -1;
                BindData1();
            }
            else
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('ข้อมูลที่จะอัพเดท มีอยู่ในระบบแล้ว !')", true);
            }
        }