ASP.NET MVC RAZOR View Engine Overview

added by kalyanms1
4/16/2013 11:48:31 PM

0 Kicks, 70 Views

ASP.NET MVC contains two view engines named Razor view engine and Web Forms view engine. This post outlines the Razor view syntax, sample code expressions, code blocks, layouts and compares some code expressions with Web Forms view engine.The Razor View engine was introduced in ASP.NET MVC3 and it is default view engine that you get when you create new MVC project in Visual Studio. Razor view allows you to write simple mark up and its syntax is simple.Razor views that use C# syntax has the .cshtml file extension. The simple Razor view can look as below


0 comments