Example #1
0
        protected void modDeleteCommand(Object sender, GridViewDeleteEventArgs e)
        {
            int             id = Convert.ToInt32(GridView1.DataKeys[e.RowIndex].Value);
            ClassTeachISCED ti = new ClassTeachISCED();

            ti.ID = id;
            ti.DeleteTeachISCED();
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('ลบข้อมูลเรียบร้อย')", true);

            GridView1.EditIndex = -1;
            BindData1();
        }