CHAPTER 5

Image

Working with Razor

Razor is the name of the view engine that Microsoft introduced in MVC 3 and that has been revised in MVC 4 (although the changes are relatively minor). A view engine processes ASP.NET content and looks for instructions, typically to insert dynamic content into the output sent to a browser. Microsoft maintains two view engines—the ASPX engine works on the <% and %> tags that have been the mainstay of ASP.NET development for many years and the Razor engine that works on regions of content denoted with the @ character.

By and large, if you are familiar with the <% %> syntax, you will not have too many problems with Razor, ...

Get Pro ASP.NET MVC 4, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.