protected void linkbtnDel_Command(object sender, CommandEventArgs e) { try { if (e.CommandName == "Remove") { int _cmdArg = Convert.ToInt32(e.CommandArgument); bool status = SNS.DeleteSensor(_cmdArg); if (status == true) { Alert = AlertsClass.SuccessRemove; } else { Alert = AlertsClass.ErrorWentWrong; } BindgridView(); allowStaticMethods("ALerts('" + Alert + "'); staticMethod('Disable'); applyDatatable('.gvdSensorclass');"); } } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }