Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Trying to implment what I have in ASP.NET 1.1 in ASP.NET 2.0 and am lost!

Thread Tools

Trying to implment what I have in ASP.NET 1.1 in ASP.NET 2.0 and am lost!
Posts: n/a
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:

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

Has a collection of text boxes and logic to save their values.

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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
why can't a implment an abstract function as static? Ed Thompson Java 9 05-24-2012 02:26 PM
Trying to implment what I have in ASP.NET 1.1 in ASP.NET 2.0 and am lost! ASP .Net 0 04-15-2005 10:31 PM
I have a soltek SL-75DRV5 with a amd 1900 xp.When trying to bootthe system reports it can't find any ide devices and using the win 98 startdiskette it says cd drivers not installed as no device was detected.It'sa brand new hard drive in that's why I al Computer Support 7 01-11-2004 03:04 PM
Reading ARGV _AND_ trying to have redirectable STDOUT ???? Michael W. Cocke Perl 1 10-09-2003 07:49 PM
im new here and have spent hours trying to find more about spyware/addware.... drackon Computer Support 3 08-22-2003 07:17 PM