Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Posts
    567
    Thanks
    2
    Thanked 4 Times in 4 Posts

    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.

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #3
    Regular Coder
    Join Date
    Nov 2002
    Posts
    567
    Thanks
    2
    Thanked 4 Times in 4 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •