What is RAZOR in MVC 3

Developers demand for a clean, lightweight view in a less syntactic noise and this is what RAZOR is all about. If you want to create a RAZOR in your MVC application, all you need to do is open up an ASP.NET MVC 3 Project, and once its done, you can now practice common RAZOR syntaxes to get a feel of RAZOR compared to ASPX views. For example, if you want to display a simple variable, start with @ because all razor syntaxes start with it then add the RAZOR syntax. For example:
Shows today’s date.
Whereas, compared to ASPX, you’ll use a complicated syntax like this:

Read the rest of the tutorial at DotNetFunda to learn moe about Razor in MVC3.

Leave a Reply

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