1.

What is ViewStart?

Answer»

A new layout called _ViewStart is introduced by the Razor View Engine that is applied to all VIEWS automatically. ViewStart is executed at the very BEGINNING followed by the START rendering as WELL as other views.

Example:

@ { Layout = "~/ Views/ SHARED/ _ file.cshtml"; } <html> <head> <meta name="viewport" /> <title> InitialView </title> </head> <body> …. </body></html>


Discussion

No Comment Found