?
Solved

Anyway to hide QueryString in browser?

Posted on 2000-04-03
5
Medium Priority
?
264 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
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/…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

649 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