Thanks for ur post... I m new to razor ... can u pls tel me abt what is the advangates of using razor over asp.net ??? I googled it . bt everyone says like reduce key strokes...
Fewer keystrokes and thus cleanliness is the advantage. Razor is heavily tied to C# 4.0's anonymous types in its implementation so it is hard for one to imagine it in MVC1. Learning it now is painful, but Microsoft is going forward with Razor as THE way to do things. Writing regular HTML instead of Razor is still OK but try to avoid breaking into <%=
Thanks for ur post... I m new to razor ... can u pls tel me abt what is the advangates of using razor over asp.net ??? I googled it . bt everyone says like reduce key strokes...
ReplyDeleteIs it a only advantage over asp.net ???
Fewer keystrokes and thus cleanliness is the advantage. Razor is heavily tied to C# 4.0's anonymous types in its implementation so it is hard for one to imagine it in MVC1. Learning it now is painful, but Microsoft is going forward with Razor as THE way to do things. Writing regular HTML instead of Razor is still OK but try to avoid breaking into <%=
ReplyDeleteThanks buddy .
Delete