Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-04-2004, 03:26 PM   PM User | #1
ScottInTexas
Regular Coder

 
Join Date: Nov 2002
Posts: 567
Thanks: 2
Thanked 4 Times in 4 Posts
ScottInTexas is on a distinguished road
To Redirect or not

The query string has a period which tells whether the user wants all data, quarterly data or just a single year. I was thinking of using a case statement and seeing what they asked for then redirecting to the specific asp to handle each case. The way I have to accumulate data I have to have a case in every function or sub to see what period the user wants. So I could make my life easier by just having a single asp for quarter, one for year and one for all.

But Response.redirect doesn't look like the right method. Am I wrong?
__________________
Scott Stewart
Always happy to learn from pros.
ScottInTexas is offline   Reply With Quote
Old 05-04-2004, 03:33 PM   PM User | #2
raf
Master Coder


 
Join Date: Jul 2002
Posts: 6,589
Thanks: 0
Thanked 0 Times in 0 Posts
raf will become famous soon enoughraf will become famous soon enough
server.transfer maybe (so you don't go over the client) or include the code inside your cases. Mind you : because the code is included before the parsing, you can not have a conditionale include (meaning, you can not check the quersytringvalue to determine which file to include. You'll need to include the code for every possible case)
__________________
Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html
raf is offline   Reply With Quote
Old 05-04-2004, 03:39 PM   PM User | #3
ScottInTexas
Regular Coder

 
Join Date: Nov 2002
Posts: 567
Thanks: 2
Thanked 4 Times in 4 Posts
ScottInTexas is on a distinguished road
Thanks Raf,

That's what I thought. So each case will be a pile of code. Fortunately, I put a lot of functions in an include file and these can be used by each case. So I guess I,m on the right track.
__________________
Scott Stewart
Always happy to learn from pros.
ScottInTexas is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:20 AM.


Advertisement
Log in to turn off these ads.