I am new to MVC 3. When I generated a file called NewEmployee.cshtml, I could see only HTML controls.
- Where is the server side controls ?
- If it does not support those controls, why should I go for Razor ?
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.
MVC is a different way of building websites/applications to webforms.
You should have a look at some of the tutorials on http://www.asp.net to see the differences.
Answers:
1) There are no server side controls
2) There are other benefits to using Razor (or aspx) within the MVC model. UI development is simpler/separated and helps when building interfaces with jQuery, no fighting with webcontrols and microsoft ajax.
HTH