How to compile a Master page in a separate assembly?

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

In ASP.NET 1.1, I had a class library with a bunch of base classes for all
my projects. One of the base class is a base page class. In .NET 2.0, how
can I compile a master page into a separate DLL? If I select class library
project type in VS 2005, it doesn't compile the code in the master page code
front file correctly. If I create a web project, it doesn't result in a
single DLL like before. How can I get around this issue?

The whole idea is to wrap the basic page layout in the base page (or master
page) in a compiled assembly, so the downstream projects can simply
reference the class without the ability to modify the page layout.

Thanks
Bob
 
in 2.0, just like 1.1, all pages are compiled into seperate dll's. in 1.1,
vs compiled the codebehinds into a dll, but there was still one dll per
page.

anyway to do what you want, create a class project for the master page, and
use the aspnet_compiler.exe (custom build command), to build the dll.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top