I am designing a project in MVC3 ASP.NET. This project is a website. Should I use ASPX pages in place of view (CSHTML) ?
Which one is more efficient way to do view (CSHTML or ASPX) ?
I’am very fresh in MVC3 ASP.NET. Please suggest me.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are comparing Razor (cshtml) to WebForms (aspx). Both are view engines so one can replace the other.
I find Razor more efficent to work with as it tends to be less markup and it fits nice with HTML. Webforms tends to be alot about tag soup and
<%all over the place.Here is a comparison from another SO thread:
Webforms:
Razor equivalent:
You should experiment and read up on both and make your own opinion on which to use.