2014-07-29 on the razor and ASPX view engines in the MVC framework

Source: Internet
Author: User

Today is the 15th day of my internship. As the preparation progresses, our team will gradually begin the development of mobile-side BBS, and we will plan to use the MVC framework for the development of the system. While we are not very familiar with the MVC framework, it may reduce our efficiency in developing the system, but we can do it in a way that we learn to do. This not only facilitates our future management and maintenance of the system, but also gives us a place to learn the power and practice.

But when we were creating a project based on the MVC framework, we had some problems. That is, there are two kinds of MVC view engine, one is razor, the file with cshtml suffix as the view file, the other is aspx, the aspx suffix file as the view file. At first, we also have a lot of doubts about the two view engines, and then after some Baidu and practice to discover: The former is a new view engine razor, it has a more intelligent syntax, and @{} to replace the previous <%%> make the statement more concise, and can be tested While the latter is the ASPX we used to use, one of the differences with razor is its ability to drag and pull controls for ease of use.

So, after a long discussion, we haven't decided which view engine to use, one is concise, can be tested, the other is mobile and easy to use. I hope you can put forward a valuable suggestion, help us make better decisions, thank you!

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.