Advantages of Razor View Engine

From Mvc 2.0 there is only aspx view engine which supports only aspx web form syntax .

But from MVC 3.0 new view engine introduced Razor view engine .Feature of razor view engine

1)It is Test driven development support

2)It uses Unit testing only , this is the best advantages , not view engine does not support that.

3)it uses @ syntax for scope , example @Html.TextBoxfor()

other way @{} using this code any c# scope can be created

4)Razor view engine supports XSS(Cross site scripting) , it uses <> tags

5)The main namespace of this view engine system.web.razor

6)It supports two type of language extension c# and Vb, the extension are like .cshtml and .vbhtml

 

You Might Also Like

Leave a Reply