468,306 Members | 1,166 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,306 developers. It's quick & easy.

How to compile a Master page in a separate assembly?

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
Feb 28 '06 #1
1 2433
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)
"Bob" <bo*******@yahoo.com> wrote in message
news:uO**************@TK2MSFTNGP15.phx.gbl...
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

Feb 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by mike | last post: by
5 posts views Thread by Kevin | last post: by
2 posts views Thread by Alec MacLean | last post: by
4 posts views Thread by Boris Yeltsin | last post: by
5 posts views Thread by Shelly | last post: by
5 posts views Thread by xlar54 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.