Microsoft confirmed that ASP. net mvc 2 official version is coming soon

Source: Internet
Author: User

BKJIA news ]. NET Development Manager Scott Gu said in his blog that Microsoft is about to release ASP. net mvc 2 official version, which is applicable to Visual Studio 2008 and ASP-based.. NET 3.5 platform Visual Web Developer 2008 Express. ASP. net mvc 2 has the following changes:

1. ASP. net mvc 2 validation added in RC1 to verify Model data in ViewData. Now model-validation has replaced input-validation. That is to say, if you use model binding to automatically bind the Model attribute to the View and automatically bind the Post-to-Controller value from the View), all the attributes will be verified again, not just the changed data.

2. The new "helper Method for strong HTML <input> tag)" now supports Lambda expressions so that you can use an array) or a collection index collection indexes ). For example, you can do this now: Html. editorFor (m => m. orders [I]), this code will generate a <input> label with sequence I as name and the value in a specific array as value.

3. The adjusted Html. EditorFor () and Html. DisplayFor () extension methods automatically correspond to simple attributes by default. This makes automatic Form construction easier.

4. The id in the client script used for model verification is now clearer. In RC1, the id is like this: form0 _ prefix. Now, the id is changed to the prefix with the attribute name, for example, unitPrice_validationMessage.

5. the Html. ValidationSummary () method adds a parameter to control the display level of the summary information, including the entire Model level or a single attribute level.

6. The default ASP. net mvc Web Application template in AccountController is more neat.

7. scaffolding) now provides the Delete method in the Controller and the View page template ).

8. jQuery 1.4.1 is included in the project, replacing the previous Version 1.3.2. You can also synchronously update the vsdoc file for smart prompts.

9. Other meaningful improvements, such as the "strong HTML <input> tag" auxiliary method mentioned in point 2nd, are now faster.

ASP. net mvc extension reading

ASP. net mvc is a framework for compiling ASP. NET Web applications in the MVC mode officially provided by Microsoft.

It comes from Castle's MonoRail. It has already gone through several versions. MVC in ASP. net mvc originally exists in the Desktop program, M is the exponential data model, V is the user interface, and C is the controller. The purpose of using MVC is to separate the implementation code of M and V, so that the same program can use different expressions. For example, you can use a column chart or pie chart to represent a batch of statistical data. The purpose of C is to ensure synchronization between M and V. Once M changes, V should be updated synchronously.

The ASP. net mvc framework is another development method after ASP. NET WebForms. It provides a series of excellent features that enable ASP. NET developers to have another choice. ASP. net mvc Framework Options are very clean and easy to use. It will allow you to easily keep focus on separation in applications and help with clean testing and TDD.

Related Article

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.