asp.net MVC 3 Five big reasons to make you crazy

Source: Internet
Author: User
Keywords nbsp five reasons new
Tags .net ajax asp asp.net block code different help

I've summed up the five reasons I'm excited about ASP.net MVC 3, and I don't know how you feel about that.

1. Razor View Engine

I have to say, razor view engine is so cool, I like its refreshing code style, it uses the @ symbol to represent the code block, the following code is legal in Razor:

@foreach (var item in Model) {

<b > @item. fullname</b >

}

2. New Assistant

The assistant has always been a asp.net of MVC and other MVC frameworks, and ASP.net MVC 3 offers new assistants that will narrow the gap between the field and the competitor.

Chart: Help to create a chart, very easy to use.

WebGrid: Renders a collection of objects in a grid, including paging and sorting, and can be output as a plain HTML table.

Webimage: Help create images, also include basic image manipulation methods, such as rotation, magnification, zoom, etc.

WebMail: Used to send e-mail.

The next-generation helper, known as the "task-based assistant", was included in the beta, but is now out of sight, and I hope to see it in the final official version, because it's so obsessed with me.

Video: Includes methods such as Video.flash,video.silverlight and video.mediaplayer that allow you to add their corresponding HTML tags.

Twitter: Includes basic Twitter operations, such as rendering a specific user's Twitter stream, or a given search result.

Recapcha: Help with reCAPTCHA services.

Gravatar: Specify a user avatar from the Gravatar service.

Analytics: Provides different methods for different analysis Services, such as getgooglehtml,getstatcounterhtml or getyahoohtml, to provide the required JavaScript code.

3. Support jquery based Ajax

In ASP.net MVC 3, Ajax.actionlink,ajax.routelink,ajax.beginform and Ajax.beginrouteform will use jquery to connect to the server, and they will not use inline JavaScript, they will invoke functions provided in JavaScript files, client-side validation Similar to this.

4. New Dependency Injection (Dependency injection) support for better scalability

asp.net MVC 3 will contain a large number of extensions, and almost anything can be extended using dependency injection.

5. Integrated Nupack

Nupack is Microsoft's new packaging system, which is completely set up with ASP.net MVC 3, right-click on the References folder in Solution Explorer, and select Add Package Reference, as shown in the following figure.

Figure 1 Adding a package reference

Then pops up the Nupack interface, where you can select a different library, as shown in the following figure.

Figure 2 Nupack the interface for adding package references

English Original: 5 reasons to be excited about ASP.net MVC 3

asp.net mvc topic: http://kb.cnblogs.com/zt/mvc/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.