?
Solved

Anyway to hide QueryString in browser?

Posted on 2000-04-03
5
Medium Priority
?
257 Views
Last Modified: 2008-01-16
I use some links to go to a ASP page using ?Field=name   etc...
But later in the browser you can see these strings, is there anyway to hide the querystring so the browser doesn't keep them in the list. I'm using IE 5 by the way.
0
Comment
Question by:fredmastro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 1

Expert Comment

by:bennyliaw
ID: 2680747
You can create frameset and target the link to a frame. This way the URL (and the query string) will not be shown in the location bar unless the user right click and view the property of the page.

Note: If you want to see the web page on the full window and do not want to divide the page into frames which will restrict the page, you can create a frameset with a dummy frame with 0 pixel height.

--benny
0
 
LVL 2

Expert Comment

by:MoMarvi
ID: 2680963
If you are using a form, what about using POST instead of GET.
0
 
LVL 2

Author Comment

by:fredmastro
ID: 2681200
oh well I was using Links, no forms on these links. I have the page already in a Frame setting where it hides it from the browser initialy, but if you start to type in the address, the querystrings still come up.
0
 
LVL 2

Author Comment

by:fredmastro
ID: 2681202
If no one can answer that question, how about them using ASP to refresh a page when it loads it back up. I keep getting old data and have to manually hit refresh
0
 
LVL 15

Accepted Solution

by:
robbert earned 200 total points
ID: 2681261
Regarding the URL list in the browser - that's not an ASP issue.

Regarding the browser's cache:

Put on top of your page:
Response.Expires = 0
Response.ExpiresAbsolute = Date - 1
Response.AddHeader "pragma", "no-cache" 'IE4+, for Proxy server cache
Response.AddHeader "cache-control", "private" 'IE5

But, you can 100% sure that the browser doesn't cache the document when you call a unique URL by adding a random querystring, only:

<a href="myPage.asp?Rnd=<%=ServerURLPathEncode(Session.SessionID & Now)%>">
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question