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