Difference Between MVC Razor View Engine and ASPX View Engine


Razor View Engine and ASPX View Engine



        Razor View Engine          ASPX View Engine
1
The namespace for Razor Engine is System.Web.Razor.
The namespace for Webform Engine is System.Web.Mvc.WebFormViewEngine.
2
Razor Engine is an Advanced View Engine that was introduced with MVC3.This is a New Markup Syntax.
Web Form Engine is the Default View Engine for the Asp.net MVC that is included with Asp.net.
3
Razor Engine is  slower than Webform Engine.
Webform Engine is  Faster than  Razor Engine.
4
Razor syntax are easy to learn and clean than Web Form syntax. Razor uses @ symbol.

@Html.ActionLink("", "")
Webform uses <% and %> delimiters

<%: Html.ActionLink("", "") %>
5
I.Razor Engine, doesn't support design mode in Visual Studio .

II.Razor Engine prevents XSS attacks (Cross - Site Scripting Attack).

III.Razor Engine support  Test Driven Development (TDD).
I.Web Form engine support design mode in Visual Studio.

II.Web Form Engine does not prevent XSS attacks (Cross - Site Scripting Attack).

III.Web Form Engine doesn't support Test Driven Development (TDD).






0 comments:

Post a Comment