Hmmm, you had some nice ideas. Your first thought to place the querystring variable in a session variable is interesting. However, in my case that may not work. IN a shopping cart configuration the incoming varialbe is an item ID and we would like for the visitor to leave that cart and pur more stuff. The session variable may negate further pruchases unless I can release the session variable upon leaving the cart page.
Your second thought to call the cart page again with a blank value may work. Once I do with the passed value what I need I can reload the page with a blank value. I'll give that a try.
Sent by FoxWeb Support on 04/15/2006 04:35:29 PM:
First let me make sure that we are talking about the same thing: I assume that the "?=" syntax refers to the Query String portion of the URL. Also, I assume that by "reload the page" you are referring to the Web browser's Reload, or Refresh button (or the equivalent function called from the menu, or by pressing Ctrl-R). If the above assumptions are incorrect, please clarify.
All modern browsers make the exact same request as before when you press the Refresh button. This means that there's no way to "remove" a query string variable. However, there's a work-around:
Whenever your called script receives a request with the query string variable in question, store the fact that this has occurred in a session variable. On all subsequent requests, even if the same query string variable is included in the URL, you will be able to ignore it, because the session variable will indicate that you have already performed the associated function in a previous request.
Another possibility would be for your script to issue a Response.Redirect to itself, with the original query string, minus the variable you don't want to see again.
Sent by Joe Goldsmith on 04/13/2006 09:15:07 PM:
I have one script that calls another script passing a parameter using the ?= syntax. Once the called script gets the parameter I want to remove the instance of that, and only that, QueryString parameter so that when I reload the page it no longer responds to the passed variable. Anyone have an ides how to do that please?