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 ...

ASP.NET Concurrent Ajax Requests and Session State Blocking 17

ASP.NET Concurrent Ajax Requests and Session State Blocking
Intro Today I ran into a pretty interesting and puzzling issue while trying to load many different long running content areas on a screen asynchronously via Ajax & jQuery. It appeared that if I shot off Ajax Request A, B, C, D… that they would always return one after the other (roughly). They never deviated ...

The Unobtrusive Libraries & Client Validation on Ajax in ASP.NET MVC 3 4

MVC 3 Unobtrusive Client Validation and Unobtrusive Ajax Overview As you may be aware, ASP.NET MVC 3 allows the possibility of using unobtursive client validation and unobtrusive Ajax. If enabled, in a nutshell this means that the stock Microsoft JavaScript libraries for both Ajax and validation (MicrosoftAjax.js and MicrosoftMvcValidation.js respectively) have been effectively swapped out ...