JonasE Posted September 16, 2004 Posted September 16, 2004 I use QueryString to send information in pages. But it is possible to clear the QueryString after the new information is load. Load new information http://myweb.com?User=Lars Next time I reload the page I just call http://myweb.com, but still it have �?User=Lars� on the end of the URL. :mad: Quote
eramgarden Posted September 16, 2004 Posted September 16, 2004 I had a smiliar question once and was told No. Was told to use session vars to pass vars around. Quote
rjonas Posted September 20, 2004 Posted September 20, 2004 Could your page work as follows: When the page loads (in the page_load event handler), check if there is a querysting. 1. If there is a query string, record a session variable containing the entire querystring, and carry on displaying the page. 2. If there is no query string, load the contents of the session variable (if it's present), and redirect back to the page (with the querystring appended). This should make the QueryString visible in the Address bar on the browser. Quote
bri189a Posted September 20, 2004 Posted September 20, 2004 If he is going to use a session value and then remove the query string he may as well not use a query string and just set the session variable on the item that causes the post back and go from there. Why do extra steps? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.