Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MVC
(I worked on Razor MVC 4.0 .)i have a .cshtml page is there , it's works as a master page in my application, it's working fine. . now i taken one web form into my application. how to add this .cshtml page as a master page to this webform.
Posted 2-Jul-13 21:09pm
sai sagar1.9K

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

By default MVC uses ~/Views/Shared/_Layout.cshtml as default masterpage. But if you have a custom master page, you can either ste while creating the page, else you can change the master page as below
 
@{
Layout="custom master url";
}
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 29 Jul 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100