Solved

Anyway to hide QueryString in browser?

Posted on 2000-04-03
5
228 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
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 50 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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 information …
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now