Virtual Classes Logo          Virtual Classes
    Read Anytime,Anywhere

Razor View Engine

View Engine in ASP.NET MVC is used to process ASP.NET content of our views to HTML.
Razor is the name of the view engine that Microsoft had introduced in MVC 3 and it has been revised in MVC 4.Namespace for Razor view Engine is System.Web.Razor and it's extension is .cshtml.
When you add a view to your application, it given to the option to choose your view engine to render the view.
You can find two view engine,ASPX engine works on the < % and % > tags, and the Razor engine that works on regions of content denoted with the @ character. Apart from these, there are other view Engines are available for MVC like NHaml etc.

Code Snippet for Razor View Engine.
Razor View Engine