O'Reilly logo

Pro ASP.NET MVC 4, Fourth Edition by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required