hi,
ASP.NET MVC 3 ships with a new
view-engine option called “Razor” (in addition to continuing to
support/enhance the existing .aspx view engine).
You can learn more about Razor, and the syntax it supports from my http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx
blog post. If you haven’t read that post yet, take a few minutes and
read it now (since the rest of this post will assume you have read it).
Once you’ve read the http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx post, also read my http://weblogs.asp.net/scottgu/archive/2010/07/27/introducing-asp-net-mvc-3-preview-1.aspx post and look over the ASP.NET MVC 3 Razor sample I included in it.
I found a great post regarding this which i would like to share with you
http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx