473,396 Members | 2,052 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,396 software developers and data experts.

V1.1 compilation model in V2.0 - Loading of UserControls across VDirs

Hello!

I was wondering if I am the only person missing the option of outputting a
single dll for a website (just like the good old v1.1 compilation model)?

What I'm looking for is the ASP.NET framework to keep away from creating
random namespaces for each directory. The new build projects from the
Microsoft team shows promising, but I am not aware if the compilation model
is flexible enough to allow the "old" model ..

My question originates from the discovery of lack of flexibility, previously
available in the 1.1 model, related to loading of e.g. UserControls (or
plain controls) from virtual directories. Keeping concrete UserControl
classes in seperate C# projects (or the app_code directory) is looking to be
a maintenance nightmare (and is definately not providing a "doing more with
less" approach).

I agree that the new "publishing" compilation models are a great step
forward (especially when it comes to RAD development - i.e. no more long
compilations), but I wish the ASP.NET team had seen this coming.

Lots of frameworks are built around dynamic control loading.

Comments? Am I missing something?

--
Venlig hilsen
Anders Borum / SphereWorks
Microsoft Certified Professional (.NET MCP)
Nov 28 '05 #1
1 1165
even 1.1 produced a dll per page. the difference in 2.0 is the code behind
in the page dll, rather then one shared dll.

if you want to share a user control, you have a couple options:

1) create an abstract class that exposes the public properties in the
appcode dir, and have the usercontrol inherit/implement the
methods/properties.

2) don't use a code behind file (the asp.net 2.0 original design), and place
the all the code in the user control aspx file.

3) dump user controls altogether and write server controls. (my approach).

-- bruce (sqlwork.com)

"Anders Borum" <an****@sphereworks.dk> wrote in message
news:Oy*************@TK2MSFTNGP15.phx.gbl...
Hello!

I was wondering if I am the only person missing the option of outputting a
single dll for a website (just like the good old v1.1 compilation model)?

What I'm looking for is the ASP.NET framework to keep away from creating
random namespaces for each directory. The new build projects from the
Microsoft team shows promising, but I am not aware if the compilation
model is flexible enough to allow the "old" model ..

My question originates from the discovery of lack of flexibility,
previously available in the 1.1 model, related to loading of e.g.
UserControls (or plain controls) from virtual directories. Keeping
concrete UserControl classes in seperate C# projects (or the app_code
directory) is looking to be a maintenance nightmare (and is definately not
providing a "doing more with less" approach).

I agree that the new "publishing" compilation models are a great step
forward (especially when it comes to RAD development - i.e. no more long
compilations), but I wish the ASP.NET team had seen this coming.

Lots of frameworks are built around dynamic control loading.

Comments? Am I missing something?

--
Venlig hilsen
Anders Borum / SphereWorks
Microsoft Certified Professional (.NET MCP)

Nov 28 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John | last post by:
Hi all, I'm having a little problem understanding the concepts of dynamically loading/unloading user conrols: 1. If I have a couple of usercontrols embedded within a few tables cells on my...
3
by: Leeor Geva | last post by:
Hi, I have been writing for the past 2 months a website purely made of basically 1 ASPX page (Default.ASPX) and loading different parts of the website using WebForm Controls in a Panel. My...
1
by: Sundaresan | last post by:
I've a form where I load two user controls dynamically. User Control-1 has a no.of dropdowns and based on the selection I typically populate a datagrid in the user control-2, Also the I could...
0
by: Phl | last post by:
Hi, I am trying to create an webform which loads usercontrols dyanamically. I know exactly what to load for some of these controls but for some, I dont want to load it until the user has press a...
4
by: Anders K. Jacobsen [DK] | last post by:
Hi I have some common UserControls i want to share between to sites (on the same mashine but on diffrent virtual paths). right now i have on solution file with aprox 10 projects. 2 of these is...
2
by: n# | last post by:
I have an old existing website with a Header/ Left Hand Menu and a iframe as the main body content, adjacent to the menu. So for every click on the menu item, I used to load a aspx page on the...
4
by: Nathan Sokalski | last post by:
In several of my UserControls I add properties. If I access these properties in the CodeBehind of the pages that use the controls, I recieve an error when compiling. The reason for this is because...
5
by: marfi95 | last post by:
I have a form that has a left and right panel. In the left panel is a treeview. The right panel I want to change dynamically based on the type of node selected. What I'm doing is loading the...
3
by: downloads4birdman | last post by:
Trick Or Treat! I have a web server setup to host both .NET 1.1 and .NET 2.0 web applications. The applications are isolated by virutal directories (VirtDir1 points to C:\Inetpub\wwwroot\app1,...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.