4

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

@Ajax.BeginForm()
3
  • 2
    Why not just take it out and see if it works? Commented Apr 5, 2011 at 19:38
  • @SpikeX sometimes things seem to work while breaking in subtle ways, so I wouldn't generally recommend (exclusively) "see if it works" Commented Apr 5, 2011 at 19:44
  • Well at the very least you could rule out a reference/library compile-time error. Commented Apr 5, 2011 at 19:46

1 Answer 1

13

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.

Sign up to request clarification or add additional context in comments.

4 Comments

BTW. are you part of the mvc team? You answer ALOT of mvc questions.
@Lol coder, no I am not part of the MVC team. I am part of the beer amateurs team :-)
@Lol coder, if this answer helped you solve the problem you were having please don't forget to mark it as answer.
was waiting on the timer thing, I always mark my answers if they helped. I have probably like 20 answers marked for u lol.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.