Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
(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

1 solution

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";
}
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900