Friday, December 14, 2018

View in MVC

View is a User Interface which displays data and handles user interaction.
Views folder contains separate folder for each controller.
ASP.NET MVC supports Razor view engine in addition to traditional .aspx engine.
Razor view files has .cshtml or .vbhtml extension.

Razor View Engine
Microsoft introduced the Razor view engine and packaged with MVC 3. You can write a mix of html tags and server side code in razor view. Razor uses @ character for server side code instead of traditional <% %>. You can use C# or Visual Basic syntax to write server side code inside razor view. Razor view engine maximize the speed of writing code by minimizing the number of characters and keystrokes required when writing a view. Razor views files have .cshtml or vbhtml extension.


http://www.tutorialsteacher.com/mvc/mvc-view

No comments:

Followers

Link