This post is part of the series I’m doing on the newly released ASP.NET MVC 3.
How is it used
I have always felt the MVC Ajax helpers were lacking – I pretty much always write the Ajax calls by hand using jQuery. Let’s take a look at an example using Ajax.
On the server I have created the following action.
My partial view simply displays a success message.
This works in both MVC 2 and MVC 3. So what’s the big deal?
How to do this in MVC 2
Now let’s take a look at the same scenario in MVC 3. We still need an include, but it’s the jQuery version.
Now the same code generates very nice markup.
Which is much neater. What about ActionLinks? (I’m using Razor as the View Engine)