2

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 ?

tereško
  • 57,247
  • 24
  • 95
  • 149
Red Swan
  • 14,573
  • 43
  • 152
  • 235
  • 2
    This 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 Answers2

3

chk it out quite interesting razor vs aspx

Sundara Prabu
  • 2,043
  • 19
  • 20
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,366
  • 13
  • 56
  • 108