Click here to Skip to main content
13,052,900 members (73,364 online)
Rate this:
Please Sign up or sign in to 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 2-Jul-13 20:09pm

1 solution

Rate this: bad
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";

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 29 Jul 2013
Copyright © CodeProject, 1999-2017
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