473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 2659
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: mike | last post by:
I'm using ASP.NET 2.0 and IIS 6 I've got a business with 2 sites requiring separate intranet info. Currently, I have 2 separate intranet sites set up in IIS. This leads to having to double up on...
5
by: Kevin | last post by:
We currently have a 1.1 class library which houses the look and feel of our website by creating the html form dynamically in a base class. We then distribute our assembly to other application...
2
by: Alec MacLean | last post by:
Hi I've just recently upgraded to VS2005 and started using/learning about the Master Pages. I'd like to know if it is possible to have separate web app projects use the master page(s) from...
4
by: Boris Yeltsin | last post by:
OK, on my Master Page I have a control: <a id="hypTabAccount" href="#" runat="server">Account</a> Now, in the code-behind (Root.master.vb) I can refer to it simply thus: ...
13
by: Kirk | last post by:
I have been reading Scott Allen's article on Master Pages (http:// odetocode.com/Articles/450.aspx) but I am having problems understanding a concept. Specifically, I have created a property...
5
by: Shelly | last post by:
First: I have a master page that has the form tag in it. My content page, on one occasion, needs a different type of form (uploading files needs encytype="multipart/form-data"). I solved this by...
1
by: msarora | last post by:
I'm using SimpleTransform.java (renamed as ReceiptTransformer.java for custom use) found in xalan-j_2_7_0 samples directory for transformations in my custom application. The program compiles...
2
by: Andrus | last post by:
I need compile in-memory assembly which references to other in-memory assembly. Compiling second assembly fails with error Line: 0 - Metadata file 'eed7li9m, Version=0.0.0.0, Culture=neutral,...
5
by: xlar54 | last post by:
I have a very simple 2.0 website (framework), that uses a master page...not. I added the default.aspx page as a webcontent form, with the master page as it's master page, but the master page is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.