protected void linkbtnDel_Command(object sender, CommandEventArgs e) { try { if (e.CommandName == "Remove") { int ID = Convert.ToInt32(Session["objectGroupId"]); bool status = obj.deleteObjectGroup(ID); clearControls(); gridBind(); BindingClass.CallScriptManager(this, this.GetType(), "ALerts('" + Alert + "'); closeDeleteModal(); applyDatatable('.gvdObjectGroupClass'); staticMethod('Disable');"); } } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }