473,779 Members | 1,909 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 22 '05 #1
0 1140

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

Similar topics

6
17748
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 call the PHP program to add the record using POST. When I get the text out, it has lost it's formatting. Formatting in the text is achieved by multiple spaces not tabs, but even multiple spaces are converted to a single space and the carrage...
2
1687
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 keep Access as a front end, and move the tables to the Internet. I feel like I'm lost in a maze or something with some really basic questions. What do I need in terms of a host? I have been looking at ipowerweb because they have a reseller...
9
1844
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 to do: there is TABLE1, TABLE2, and TABLE3 i want to select each row from TABLE1, do some analysis on the data of that row, and then perform an insert of some data into TABLE2, and some
4
1722
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 pg_temp_5821_0: No such file or directory NOTICE: --Relation pg_temp_5821_0-- ERROR: _mdfd_getrelnfd: cannot open relation pg_temp_5821_0: No such file or directory
4
1919
by: Garry Freemyer | last post by:
I'm trying to convert this macro to a c# function but I have a big problem. It's on the LEFT side of an assignment statement and I am extremely flustered over this one because I'm a little rusty and have been struggling over this for days, not wanting to show all my ignorance in final desparate plea for help which this is ... Here is the macro ... #define X(t,b) (sp->x)
0
1714
by: Nick | last post by:
I have a situation wherein i have a text box, that has abc() being executed whenever the lost focus event is triggered. However, there is an exceptional case where, if a button click causes the lost focus, I do not want abc() to be called. Is there a method by which one can find out which control is triggering the lost focus event? I have a keyboard shortcut for the click handle, and the lost focus handle does not get invoked if I use...
5
1436
by: Simon Dean | last post by:
Hello, Im hoping you can help me. Im, probably not that advanced with PHP, well, I probably am, but with a memory like a sieve, I rarely take in information... But, Im just considering some OOP using PHP's Classes. Seems quite handy so far, already generated a Login class and it does
7
2967
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 statServer timeout to 20 min in the the web.config file. Any ideas why the variables are lost?
2
4255
by: maxkumar | last post by:
Hi, I am running a ASP.NET 1.1 site on Win Server 2003 with IIS 6.0. The website has been running for about 1.5 years now. In the past, we used to have random cases of session variables getting lost, but not frequently. However, since the past 2 weeks, I am noticing an alarming increase of such session variables lost cases. My application log shows about 20-30 such errors every day. We have not changed anything at the server for a long...
4
2329
by: =?Utf-8?B?R29yZnk=?= | last post by:
Hey everyone. This is only my first week with C#, but I use actionscript a lot in Flash, so I have a very basic understanding of programming, but bear with me... I am trying to create a "FadeClass" that I can use to fade windows in my programs. I am using Visual C# 2008 Express right now. This is my "Form1.cs" in it's current state: using System;
0
9633
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10305
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10137
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10074
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7483
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.