Skip to main content

Working with Razor

  • Chapter
Pro ASP.NET MVC 4
  • 1814 Accesses

Abstract

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 %glt; 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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Adam Freeman

About this chapter

Cite this chapter

Freeman, A. (2012). Working with Razor. In: Pro ASP.NET MVC 4. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4237-6_5

Download citation

Publish with us

Policies and ethics