Exemplo n.º 1
0
 protected void linkbtnDel_Command(object sender, CommandEventArgs e)
 {
     if (e.CommandName == "Remove")
     {
         try
         {
             int _cmdArg = Convert.ToInt32(e.CommandArgument); bool response = OBJ.PutTavlObjectStatus(_cmdArg);
             if (response == true)
             {
                 Alert = AlertsClass.SuccessRemove;
             }
             else
             {
                 Alert = AlertsClass.ErrorWentWrong;
             }
             Gridbind(Convert.ToInt32(ddlObject.SelectedValue));
             allowStaticMethods("ALerts('" + Alert + "'); staticMethod('Disable');");
         }
         catch (Exception)
         { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
     }
 }