Click here to Skip to main content
11,479,486 members (46,663 online)
Rate this: bad
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
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
0 OriginalGriff 255
1 Sergey Alexandrovich Kryukov 215
2 F-ES Sitecore 175
3 Richard MacCutchan 120
4 Frankie-C 104
0 Sergey Alexandrovich Kryukov 7,890
1 OriginalGriff 7,441
2 Sascha Lefèvre 3,064
3 Maciej Los 2,491
4 Richard Deeming 2,335

Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 29 Jul 2013
Copyright © CodeProject, 1999-2015
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