Is MVC added to ASP. NET webform?

Source: Internet
Author: User

Go to work today and see a piece of news saying that webform will add some MVC features in the future? This makes me very much look forward to, because the conventional ASP. NET development is too cumbersome than MVC, and the coupling is too tight.

Although MVC brings us a surprise, ASP. NET webform is still very popular. According to evonet consultants, the next major ASP. NET Conference contains a large number of features originally introduced in MVC, including model binders, implicit client verification, and CSS Sprite.

MVC model binders automatically processes the ing between fields on the web form and object attributes. This greatly reduces webform duplication.CodeIn those codes, we will manually map the properties of the object to the control to display it to the user, and then map it to the object again to save the changes. To learn about model binders through an instance, see Maarten balliauw's presentation. In the next version of ASP. NET, we can directly bind the updated value to the underlying data record in data controls such as gridview or listview. It is very likely that the records displayed by various controls, such as numbers or text input boxes, can also obtain a certain level of automatic binding.

MVC uses the data-Custom Attributes of jquery. Validate and html5. The next version of ASP. NET will also contain this feature. This allows us to process client verification without writing lengthy and huge JavaScript code as before. The data M attribute of HTML 5 allows us to save information in HTML elements as an attribute with the "data" prefix. This allows you to flexibly store information in the Dom, and easily distinguish the data M attribute from the standard HTML attribute from the JavaScript or server code. For examples of how jquery verification works, see the jquery verification plug-in. This plugin contains automatic email and URL verification, and many other automatic rules for verifying fields.

CSS Sprite is an optimization method that pushes images to the client. All images on the page are combined into a single file in the grid. This greatly reduces the number of HTTP requests required to retrieve all images on the page and the time required to load the page. CSS Sprites will be added in the next version of ASP. NET webform, but if you don't want to wait until that time, you can also get the preview version of CSS Sprites from codeplex. Fashion Java-JavaScript mogujie.com women's clothing

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.