In MVC 3 with Razor view engine, you could establish the default layout page for all of your views. I can’t seem to find a feature like this in ASP.NET razor pages (asp.net web pages with Razor)… anybody know if it exists?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can choose a MVC View Master page, see here for screenshots: http://www.asp.net/mvc/tutorials/creating-page-layouts-with-view-master-pages-vb
For the new ASP.Net WebPages stuff, its called _PageStart.cshtml (under ~/Shared/ folder). More info here: http://www.asp.net/webmatrix/tutorials/18-customizing-site-wide-behavior