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


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>