Click here to Skip to main content
13,404,603 members (36,920 online)
Rate this:
Please Sign up or sign in to vote.

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
Updated 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 :)

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 |
Web02 | 2.8.1802120.2 | Last Updated 26 Feb 2013
Copyright © CodeProject, 1999-2018
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