Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding variables in the url when using response.redirect

Status
Not open for further replies.

achmo

Programmer
Aug 30, 2001
56
IL
Hello,

Is there a way to hide the variables in the url when using response.redirect, as if I was using a "post" method on a form?

thanks,

Yael
 
As far as I know you can only use the querystring for this, but you do have other otions:

1 is to write a form to the screen using all hidden variables and include a javascript autosubmit in the bodytag like this

<HTML>
<BODY onLoad=&quot;document.forms[0].submit()&quot;>
<FORM>
<INPUT TYPE='hidden Name='var1' Value=1>
</FORM>
</BODY>
</HTML>

So the user never sees anything.

Alternatively if you're using asp6 (Win2000) you can use the server.transfer to move to another page but keep all the form variables and page variables available (this only works on the same server though - you can't transfer to another site)

good luck
 
Yael,

Frames can hide the URL from the address line..

ToddWW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top