Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET Masterpage
Hello!
 
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 1:55am
Edited 22-Feb-13 2:02am
RyanDev106.4K
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Marcus Kramer at 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 at 25-Feb-13 1:17am
   
nice knowledge by you thanks
Rate this: bad
good
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.
http://weblogs.asp.net/dwahlin/archive/2005/11/16/430779.aspx[^]
 
see this blog for complete step by step tutorial. I used this method and it works fine for me ... Cheers Smile | :)
  Permalink  

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



Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 26 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid