1.

What Is Razor View Engine?

Answer»

Razor is the first major update to render HTML in ASP.Net MVC 3. Razor was DESIGNED specifically for VIEW engine syntax. MAIN focus of this WOULD be to simplify and code-focused templating for HTML generation.

Below is the sample of using Razor:

@model ASP.Net MVCMusicStore.Models.Customer

@{ViewBag.Title = "Get Customers";}

< div CLASS="cust">

@Model.CustomerName

Razor is the first major update to render HTML in ASP.Net MVC 3. Razor was designed specifically for view engine syntax. Main focus of this would be to simplify and code-focused templating for HTML generation.

Below is the sample of using Razor:

@model ASP.Net MVCMusicStore.Models.Customer

@{ViewBag.Title = "Get Customers";}

< div class="cust">



Discussion

No Comment Found