asp.net MVC example and new RC version of the view improvements

Source: Internet
Author: User
Tags final

We have launched a new asp.net MVC design showroom on the Www.asp.net website. This design showroom showcases free HTML design templates that you can download and easily use in your asp.net MVC application. Each design template includes a Site.master file, a CSS stylesheet file, and perhaps a set of pictures, user controls, and helper methods to support them.

The showroom allows you to preview each design online, as well as download a template that you can solve and integrate into your site. zip version. The showroom allows anyone to create and submit new designs under the authoring Common License (Creative Commons license). Visitors can vote on them and provide feedback. The most popular design will be shown at the top of the showroom.

We think this will give developers a useful way to make it easier to create attractive, standard-compatible sites. Hope also encourages you to create and share designs that can be reused easily for others.

View improvements in the upcoming final release Candidate

On the subject of the UI, I think I should also like to share with you the details of some of the views-related improvements in the upcoming ASP.net MVC final candidate version (Release Candidate, abbreviated RC). In addition to bug fixes, the RC version incorporates several new view-specific features and recommendations from the community.

View that does not require a background code file

Based on feedback from many people, we decided to make a change so that the MVC view file no longer owns the background code file by default. This change helps to reinforce the purpose of the view in the MVC world (The view is intended to be purely displayed and should not contain any code that is unrelated to the display), eliminating files that are not used in the project (for most people):

In the ASP.net MVC beta release, developers can remove background code files by using generic CLR syntax on the Inherits (inherited) properties in the view, but this CLR syntax is very hard to find and very difficult to use, if it's easy to say. The ASP.net MVC development team combines several of the existing extensibility features in asp.net to provide a standard vb/c# language syntax in the Inherits attribute in the ASP.net rc version:

Another advantage of not using the background code file is that you will get IntelliSense immediately when you add the view file to the project. In the beta release, you'll need to compile the view once before you can get code IntelliSense in it. The RC version will make the process of adding and immediately editing the view a little more compact and compile-tired.

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.