I have an Ajax Action link that will call an action method
In my Ajax option, I called the Validate function,
If this function returns true,
then only I would like this Action Execute, not sure how I can do this?
My ajax actionlink
Ajax.ActionLink("Renew", "Edit", "Controller", new { id = "<#= ID #>" }, new AjaxOptions { OnBegin = "isValidDate", OnSuccess = "DestroyRecreateAccordion", UpdateTargetId = "accordion", InsertionMode = InsertionMode.InsertAfter, }, new { @class = "standard button" })
How to do this only if isValidDate returns true?
Habo
source share