Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How to keep QueryString-values?

Reply
Thread Tools

How to keep QueryString-values?

 
 
Ragnar Heil
Guest
Posts: n/a
 
      02-10-2004
Hi,

to change the colors of a forum I am using
request.querystring("cellcolor"). That works fine for my default.asp.
Now I click on a topic and it links to topic.asp where the values of
the query string are gone.

Which approach would you recommend? How can I store the values?
The general idea is that I have got 5 main-navigation-links which
point to 5 different forums, each with separate colors. So the query
string can be hardcode in the HREF, but should remain if you click
further in each forum


regards
Ragnar
 
Reply With Quote
 
 
 
 
Rob Meade
Guest
Posts: n/a
 
      02-10-2004
"Ragnar Heil" wrote ...

> to change the colors of a forum I am using
> request.querystring("cellcolor"). That works fine for my default.asp.
> Now I click on a topic and it links to topic.asp where the values of
> the query string are gone.


You would have to include the cellcolor on 'every' hyperlink to pass it
around that way....

> Which approach would you recommend?


Not that one to be honest, primarily because people could just type over it
and change it to something else (unless thats what you want).

> How can I store the values?


Depends a bit on the scope of the app I guess, you could use a cookie, a
session variable to store it,

> The general idea is that I have got 5 main-navigation-links which
> point to 5 different forums, each with separate colors.


Why not use a 'style' for each one, use CSS for each forum, then you dont
need to specify the colour in the querystring at all, as soon as they arrive
it'll be the right colour, and using CSS you'd be able to change the colours
of the forums with only a couple of minor changes to your stylesheet.

Hope this helps

Regards

Rob


 
Reply With Quote
 
 
 
 
Bullschmidt
Guest
Posts: n/a
 
      02-10-2004
You could store the values in session variables.

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How keep python socket alive for ever by setting Keep alive flag. hisan Python 1 06-25-2012 05:30 PM
Keep losing connection to network - VERY frustrating! Simon Pleasants Wireless Networking 2 08-25-2006 01:02 PM
Keep an Eye Out for the PSP's Firmware Upgrade Silverstrand Front Page News 0 08-04-2005 01:03 AM
Wireless Connected, but I keep getting 'cannot find server' (SP2) =?Utf-8?B?U2NodHU=?= Wireless Networking 3 10-11-2004 01:29 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57