Fork me on GitHub

Ajax.BeginForm AjaxOptions custom arguments for OnComplete, OnSuccess, OnFailure and OnBegin 6

Some interesting behavior I noticed recently about the Microsoft MVC 3 jQuery library jquery.unobtrusive-ajax.js is the ability to pass you own arguments into the handler. Normally you have probably used it like this: C# @using (Ajax.BeginForm(new AjaxOptions{OnComplete = "DefaultEditOnComplete"})) { //Person data and submit button } 123456  @using (Ajax.BeginForm(new AjaxOptions{OnComplete = "DefaultEditOnComplete"})){    //Person data and submit ...