예제 #1
0
 protected void linkbtnDel_Command(object sender, CommandEventArgs e)
 {
     try
     {
         if (e.CommandName == "Remove")
         {
             int  ID     = Convert.ToInt32(Session["GroupID"]);
             bool status = obj.disableGroup(ID);
             if (status == true)
             {
                 alert = AlertsClass.SuccessRemove;
             }
             else
             {
                 alert = AlertsClass.ErrorWentWrong;
             }
             gridBind();
             Session.Remove("GroupID");
             allowStaticMethods("ALerts('" + alert + "');CloseDeleteModal();applyDatatable('.gvdGroupClass'); staticMethod('Disable');");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }