Click here to Skip to main content
11,921,479 members (62,389 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET Masterpage

I have a simple web application with a master page. And I have another web application in which I want to use the master page of the 1st web application. Means I want to share master pages across two projects. Please if anyone knows anything about how to do it post your anwers asap.
your help will be highly appreciated..
Posted 22-Feb-13 2:55am
Edited 22-Feb-13 3:02am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Marcus Kramer 23-Feb-13 11:00am
My 5. These links do solve the OP's problem.
As a note, I would suggest that a resource like the Master Page should not be shared between projects unless they are part of the same solution. The reason I say this is that doing this introduces a bit of a maintenance nightmare in that any change to the originating master page will likely have undesired side effects in the second application. As well, Master Pages tend to require many resources like images and scripts. That means that all these other resources would also need to be shared and that just makes the maintenance nightmare even bigger.
Shubh Agrahari 25-Feb-13 1:17am
nice knowledge by you thanks
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Publish the website that have the master page then you can see the published website bin folder contains a dll file with a strange name install that dll in gac and then you can use the page in more than one sub application.[^]

see this blog for complete step by step tutorial. I used this method and it works fine for me ... Cheers Smile | :)

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

  Print Answers RSS
0 OriginalGriff 553
1 Dave Kreskowiak 245
2 phil.o 160
3 KrunalRohit 134
4 Sergey Alexandrovich Kryukov 132
0 OriginalGriff 6,951
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,171
3 George Jonsson 2,840
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web02 | 2.8.151120.1 | Last Updated 26 Feb 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