Any particular reason you cannot simply move the .master file around?
Consolidate all your server-side code (cs or vb) into the actual .master
file just as you could any .aspx file and move it around.
I think your only other option would be creating a class that inherits from
System.Web.UI.MasterPage and overriding the correct events to render out the
proper HTML, then include the proper ContentPlaceHolders into the control
tree. All of this might be a bit of a pain. I don't see why it wouldn't
work, though; on the other hand I'm not sure how kindly Visual Studio's
design-time facilities for master-page development would take to all
this....dunno...never tried....
--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
"Joey" <jo**@mail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi,
is it possible to move a MasterPage into a class library so that it can be
used by multiple websites?
if not, is there an alternative way?
reagrds,