Virtual Classes
Read Anytime,Anywhere
Home
Knowledge
English
Grammar
Essay
हिंदी
व्याकरण
निबंध
Physics
Computers
MVC
Oops
JQuery
C++
ASP.NET
Interview FAQ
Download
Contact Us
Model
View
Controller
Layout Page
Partial View
Razor View Engine
Model Binding
Bundling In MVC
Routing in MVC
Request Life Cycle
ViewData\ViewBag
Filters
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.