473,406 Members | 2,352 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.

Trying to implment what I have in ASP.NET 1.1 in ASP.NET 2.0 and am lost!

I have a collection of pages and user controls in a separate project that I
compile and use in a sub folder of a all my projects. This is a collection
of re-usable modules that I use on every project I do.

The logic in the page is to load the related "core" user control, and if the
"site-specific" user control exists, load it too - most of the logic of the
"page" is in the user controls... for example, I have these pages/controls
in a project:

/core/editPage.aspx
This simply has the logic to load the "/core/editPage.ascx" page and if the
"/ss/editPage.aspx" exists it loads it to. Also checks a flag to see if the
"core" page is turned on, if not, only loads "site-specific" page. Also has
the logic to call the "save" method on the "core" and "site-specific" user
controls.

/core/editPage.ascx
Has a collection of text boxes and logic to save their values.

/ss/editPage.ascx
Option 1 - New user control that has a couple extra text boxes on it that is
unique to a site and the logic to save the extra data.
Option 2 - A copy of /core/editPage.ascx, re-arranges the controls (or hides
a few controls) per the needs of the site and "inherits" from the
/core/editPage.ascx code behind - "core" user control is flagged as "off"
This is a key component to my framework and allows me to reuse a ton of
functionality and quickly/easily change it on a site per site basis.

I have no idea now to implement something like this in .NET 2.0 - I was able
come up with a way to load the "core" and "site-specific" user controls with
out a problem, but now if I have to "override" the core page, basically
Option 2 from above, then I have no idea how to have the "site-specific"
control inherit from the "core" control...

Any ideas would be great, thanks!

Nayt Grochowski
Nov 19 '05 #1
0 752

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

Similar topics

6
by: James Turner | last post by:
I am trying to store formatted text (windows format) into a MySQL database and then retrieve it. The field in the database is a varchar. I cut and paste the test into a form field formatted, then...
2
by: Daven Thrice | last post by:
Hi, I've converted the tables from an old Access application to MySql format. I then linked the tables into access using MyODBC and everything works great (on my computer). For now, I want to...
9
by: iaesun | last post by:
i'm trying to write a batch that will perform a complex task using set-based selects instead of a row-based cursor. let me know if you can help me figure out how. description of what i'm trying...
4
by: Dave Smith | last post by:
After a abnormal system shutdown I am trying to run a vacuum full verbose ANALYZE and getting the following error. NOTICE: Analyzing classification NOTICE: RelationBuildDesc: can't open...
7
by: Erik | last post by:
I have an application that uses sessions variables a lot but one I publish the application on the prod server these variables are lost. The application is written i c# 2.0 and I've set the...
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:
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.