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

design question, how to implement controls

trying to stop thinking classic ASP way, I want to ask you a design question
about how to seperate page functions. Let's say I have a blog.aspx page
which has 3 subpages;
1) display all (short version) blog entries for selected month or blog
category
2) display selected blog (long version)
3) display list of blog categories and allow user to select one

the old way was to use Request.Querystring("action") where action would be
allblogs, selectedblog or blogcats. A single .asp page would handle it with
3 switch... case statements. No problem doing that in .Net either but the
problem is that all controls in the .aspx page are rendered even though only
one is being used.

So concerning these controls, should I struggle to somehow disable them
until used or do I really need to have three seperate .aspx pages for these
three different - still similiar - sections?
Nov 19 '05 #1
3 983


I would go for 3 pages. It is much easier, even if you need to repeat
similar components 3 times.

Eliyahu

"Davids" <db****@simnet.is> wrote in message
news:cq**********@news.simnet.is...
trying to stop thinking classic ASP way, I want to ask you a design question about how to seperate page functions. Let's say I have a blog.aspx page
which has 3 subpages;
1) display all (short version) blog entries for selected month or blog
category
2) display selected blog (long version)
3) display list of blog categories and allow user to select one

the old way was to use Request.Querystring("action") where action would be
allblogs, selectedblog or blogcats. A single .asp page would handle it with 3 switch... case statements. No problem doing that in .Net either but the
problem is that all controls in the .aspx page are rendered even though only one is being used.

So concerning these controls, should I struggle to somehow disable them
until used or do I really need to have three seperate .aspx pages for these three different - still similiar - sections?

Nov 19 '05 #2
well that isn't much in the spirit of .Net of reusing code blocks etc??? Is
there any application code example out there that I can learn from?

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl...


I would go for 3 pages. It is much easier, even if you need to repeat
similar components 3 times.

Eliyahu

"Davids" <db****@simnet.is> wrote in message
news:cq**********@news.simnet.is...
trying to stop thinking classic ASP way, I want to ask you a design

question
about how to seperate page functions. Let's say I have a blog.aspx page
which has 3 subpages;
1) display all (short version) blog entries for selected month or blog
category
2) display selected blog (long version)
3) display list of blog categories and allow user to select one

the old way was to use Request.Querystring("action") where action would
be
allblogs, selectedblog or blogcats. A single .asp page would handle it

with
3 switch... case statements. No problem doing that in .Net either but
the
problem is that all controls in the .aspx page are rendered even though

only
one is being used.

So concerning these controls, should I struggle to somehow disable them
until used or do I really need to have three seperate .aspx pages for

these
three different - still similiar - sections?


Nov 19 '05 #3
If you are taking about code-behind classes. nothing stops you from using
the same classes in 3 places. Page layout and service controls are more
difficult to reuse. In ASP.NET 2.0 there are master pages. In ASP.NET 1.1
you can make custom controls, but I wouldn't bother for just 3 pages. To
make more-or-less non-trivial control is a hassle and you have to learn a
lot of things.

Eliyahu

"Davids" <db****@simnet.is> wrote in message
news:cq**********@news.simnet.is...
well that isn't much in the spirit of .Net of reusing code blocks etc??? Is there any application code example out there that I can learn from?

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl...


I would go for 3 pages. It is much easier, even if you need to repeat
similar components 3 times.

Eliyahu

"Davids" <db****@simnet.is> wrote in message
news:cq**********@news.simnet.is...
trying to stop thinking classic ASP way, I want to ask you a design

question
about how to seperate page functions. Let's say I have a blog.aspx page
which has 3 subpages;
1) display all (short version) blog entries for selected month or blog
category
2) display selected blog (long version)
3) display list of blog categories and allow user to select one

the old way was to use Request.Querystring("action") where action would
be
allblogs, selectedblog or blogcats. A single .asp page would handle it

with
3 switch... case statements. No problem doing that in .Net either but
the
problem is that all controls in the .aspx page are rendered even though

only
one is being used.

So concerning these controls, should I struggle to somehow disable them
until used or do I really need to have three seperate .aspx pages for

these
three different - still similiar - sections?



Nov 19 '05 #4

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

Similar topics

2
by: adb | last post by:
I came up with a replication configuration that is basically the result of all the restrictions of replication as well as the restrictions of allowable software on work PC's and I was curious if...
0
by: Jason | last post by:
What interface do I need to implement in order to get a component with a public property to show up in the data binding drop down boxes at design time in VS.net? I've tried to look just about...
2
by: Dan | last post by:
All, I have a windows form application. The form will host various user controls that will implement an interface so that was new controls can be added later without recompiling the hosting...
17
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.