Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Microsoft.ajax.js necessary for ASP.NET MVC ajax stuff?

It it necessary to include microsoft.ajax javascript files to use code such as:

@Ajax.BeginForm()
like image 695
Shawn Mclean Avatar asked Dec 12 '22 14:12

Shawn Mclean


1 Answers

No, it's no longer necessary. ASP.NET MVC 3 uses jquery by default. So you need jquery.unobtrusive-ajax.js which ajaxifies the HTML5 data-* attributes generated by the Ajax.* helpers. So no more MicrosoftAjax*.js.

like image 199
Darin Dimitrov Avatar answered Jan 11 '23 13:01

Darin Dimitrov