I am working on MVC aspx since around a year. But could not go for Razor. I know there are the syntactical difference between aspx and razor. But could not understand the benefits. If it is just an alternative then why need it to be implemented exactly ?
Asked
Active
Viewed 8,608 times
2
-
2This is a subjective discussion, it's like asking why C# over Java. I would say razor is a lot cleaner and you can switch between code/markup easily. But that's my opinion. – gideon Dec 11 '12 at 06:12
-
@ gideon: Thanks for share your thoughts. but is it beneficial in render view and make low in complexity, performance wise ? – Red Swan Dec 11 '12 at 06:14
-
These posts might help : http://stackoverflow.com/questions/9699556/comparions-of-razor-vs-aspx-syntax http://stackoverflow.com/questions/6569809/mvc-3-aspx-vs-razor-view-engine – gideon Dec 11 '12 at 06:16
2 Answers
2
Unit Testable: The new view engine implementation will support the ability to unit test views (without requiring a controller or web-server, and can be hosted in any unit test project – no special app-domain required).
Razor/CSHTML - Any Benefit over what we have?

Community
- 1
- 1

Sirwan Afifi
- 10,654
- 14
- 63
- 110