ControllerStandardDataItemClassIndexOnActionResultPostDelete Method |
Namespace: SOWIWeb.Helper
[Missing <returns> documentation for "M:SOWIWeb.Helper.ControllerStandard`1.IndexOnActionResultPostDelete"]
Delete ID is form field DeleteID (Request.Form["DeleteID"])
Declaration the event handler
public TicketFileContentController() : base() { this.IndexAppActionDelete += OnIndexAppActionDelete; }
/// <summary> /// Delete ID is FileContent ID not TicketFileContent ID and not is running standard App method Delete /// </summary> /// <param name="sender"></param> /// <param name="e">e.Value is ID to delete</param> private void OnIndexAppActionDelete(object sender, EventArgPropertyData e) { //* DeleteID (e.Value) is FileContent.ID (not TicketFileContent ID) * int lID = (int)e.Value; AppTicketFileContent.DeleteByFileContent(lID); e.Cancel = true; //* standard App method Delete not is running * }