473,382 Members | 1,353 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,382 software developers and data experts.

Page inheritance architecture in ASP.NET

BK
I am writing a tiered inheritance structure in ASP.NET and would like
opinions on the best way to accomplish the correct inheritance dynamically.
The page structure is going to look similar to the following:

System...Page
|
MyBasePage
|------------------|--------------------|
CategoryPageOne CategoryPageTwo CategoryPageThree
| | |
[Lots of Pages] [Lots of Pages] [Lots of Pages]
There is a custom control that needs to be included at the "CategoryPage"
level and then "visually" inherited by the other pages (not sure that this
is even possible). Is it? If so, do I do it using a .cs class file or a
..aspx page. Essentially, I'm just looking for some direction on what methods
or techniques that I might use to accomplish this.

For example, how do I have sections defined at the "CategoryPage" level
placed at the correct places without MyBasePage having to know details about
its derived pages' structure? MyBasePage may define headers and footers, but
then the CategoryPages may have completely different layouts between the
header and the footer. How do I generically tell MyBasePage to "build
whatever the CategoryPages tell you to build"?

Any help appreciated,
BK
Jul 19 '05 #1
1 1742
BK,
ASP.NET only supports code inheritance (.cs file) not visual inheritance
(.aspx file).

You may want to ask this "down the hall" in the
microsoft.public.dotnet.framework.aspnet newsgroup, as there are a couple of
template methods that you can use...

Hope this helps
Jay

"BK" <no*****@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
I am writing a tiered inheritance structure in ASP.NET and would like
opinions on the best way to accomplish the correct inheritance dynamically. The page structure is going to look similar to the following:

System...Page
|
MyBasePage
|------------------|--------------------|
CategoryPageOne CategoryPageTwo CategoryPageThree
| | |
[Lots of Pages] [Lots of Pages] [Lots of Pages]
There is a custom control that needs to be included at the "CategoryPage"
level and then "visually" inherited by the other pages (not sure that this
is even possible). Is it? If so, do I do it using a .cs class file or a
.aspx page. Essentially, I'm just looking for some direction on what methods or techniques that I might use to accomplish this.

For example, how do I have sections defined at the "CategoryPage" level
placed at the correct places without MyBasePage having to know details about its derived pages' structure? MyBasePage may define headers and footers, but then the CategoryPages may have completely different layouts between the
header and the footer. How do I generically tell MyBasePage to "build
whatever the CategoryPages tell you to build"?

Any help appreciated,
BK

Jul 19 '05 #2

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

Similar topics

3
by: enchantingdb | last post by:
I have an exam tomorrow that covers the perceived advantages and disadvantages of object oriented programming, in particular polymorphism, inheritance and encapsulation. I know the advantages but...
5
by: Invalidlastname | last post by:
Hi, I just read the pattern "Design and Implementation Guidelines for Web Clients" from MSDN. Here is my question. In chapter 3,...
0
by: headware | last post by:
In his book "Patterns of Enterprise Application Architecture", Martin Fowler says that using the Table Module pattern to model the domain logic precludes the use of inheritance and GoF style OO...
2
by: BK | last post by:
I am writing a tiered inheritance structure in ASP.NET and would like opinions on the best way to accomplish the correct inheritance dynamically. The page structure is going to look similar to the...
2
by: Kevin Newman | last post by:
I have been playing around with a couple of ways to add inheritance to a JavaScript singleton pattern. As far as I'm aware, using an anonymous constructor to create a singleton does not allow any...
0
by: Terry Hancock | last post by:
I've been discussing PyProtocols with a a friend collaborating with me on a SF game project, about the benefits and design concept of "component architecture", and I'm a little confused by what...
47
by: Mark | last post by:
why doesn't .NET support multiple inheritance? I think it's so silly! Cheers, Mark
3
by: PJ6 | last post by:
First up, I know I'll get some good answers here, but in general, are there any newsgroups devoted to overall application architecture? Second, sorry for cross-posting but in this case I think...
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
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...

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.