Reuse usercontrols, masterpages, etc in ASP.Net 2

How many times you wanted to reuse artifacts like usercontrols, or even pages? Dan Wahlin posted to the list regards this issue. He wanted to reuse a master page accross different websites (hosted on different vdirs).
I've recommended him reading this post from ScottGu and he got working a first version. The idea is to sign and publish the website and put it on the GAC. Then on the website that you want to reuse create an empty masterpage and make it inherits from the GAC masterpage class. The entire post can be read here.

Published: November 18 2005

blog comments powered by Disqus