RAZOR VIEW VS ASPX VIEW ENGINE | DIFFERENCE | PERFORMANCE
DIFFERENCE BETWEEN ASP.NET VIEW ENGINE AND RAZOR VIEW ENGINE
Razor View Engine ::
1.Razor Engine is a newly launched advance view engine that was introduced with MVC3.
2.Razor view engine File extension for C# is .cshtml
3.Razor view engine File extension for VB is .vbhtml
4.Razor view engine syntax is easy to learn than Web Form Engine syntax.
5.In Razor view syntax we use @ Symbol before any tag
6.For comment we can use @*.....*@
7.We need not to enclosed the code block/tag between @. Ex-
8.Razor version has only three transition characters (@)
9.Namspace for Razor is System.Web.Razor
10.Razor is littel bit slower than aspx view engine
Aspx View Engine::
1.Aspx view Engine is the default view engine for the Asp.net MVC that is included with Asp.net from the beginning.
2.In Web form(aspx view) engine it .aspx
3.It is .aspx in web form engine, (Same in both VB and C#)
4.Not easy as Razor view engine syntax
5.In aspx view Engine we use <% and %>
6.For comment we can use /*...*/ (C#)
7.We need to enclosed the code block/tag between <% and %>
8.Aspx version has 21 transition characters (the <% and %>)
9.Namspace for Web form is System.Web.Mvc.WebFormViewEngine
10.Aspx view engine is littel bit faster than Razor view engine
Comments