Difference between View engine & Razor view engine
A view engine is the part of the asp.net MVC Which is used to execute the code by programming any kind of rendering is required and delivering to the client. net MVC supports the following view engine
- Webform view engine
- Hasic (Support VB .net only)
- N Django
- N Haml
- N Velocity view engine (MVC Contrib)
- Spark view engine
- String template. View Engine MVC
- XSLT view engine
Razor view Engine:-
Razor view engine is not a programming language and it will work with C# and VB.net languages. Razor is an asp.net programming syntax. used to create dynamic web pages. with the help of C# and VB. Net the first version of Razor is released Jan 2011 along with ASP.net MVC 3 version.
- We can Razor syntax using ‘@’symbol instead on <% = %> class.
- This @ symbol technical name is ‘verbatim’
Design Goals Razor:-
Compact, Expressive, fluid:-
That takes less memory as compares with the webform view engine. We can see more output by writing less of code then also Any asp.net programmer can learn the razor syntax with team effort. It is not a separate language rather it will work with C# and VB
Work with Any Text Editor:-
Has great Intelligence:-
When working with visual studio .net or visual web matrix we get all the features
Interested in mastering ASP.Net Training? Enroll now for a FREE demo on "ASP.Net Training"
Most flexible and easy for TDO.