Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Posting variables to page then redirect?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 22 May 2007 :  11:38:12  Show Profile
Hi, I know it is possible to have response.redirect send a user
to another page. I also know it is possible to redirect to a dynamic
page, with variables in the url.

But, is there any way to send variables through "post" and after that redirect? so the user will see index.asp instead of index.asp?var1=hjhkhkj&var2=hkshdksahdk&var3=hdjhkdsak

(Possibly Server.Transfer? - don't know too much of that)

Greets & thanks,

Dominic

CLPPR.com - All The News Only Seconds Away

PPSSWeb
Junior Member

312 Posts

Posted - 22 May 2007 :  13:09:18  Show Profile
As far as I know, Server.Transfer removes the client processing from the redirection. Basically, the server does what it needs to and then sends the client the transfer page. Instead of sending the client a redirect code with a url to follow as the response.redirect does.

The only time I played with the Server.Transfer, it behaved differently with different browsers. Some would not get redirected at all while others would. Where the response.redirect seems to be handled the same across all browsers that I tested.

Go to Top of Page

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 22 May 2007 :  13:19:42  Show Profile
Hmmm, which would mean Server.Transfer isn't it for now.
Thanks for the info PPSSWeb!

Remains the original question, which I believe is impossible, but hope I'm wrong at that :)

CLPPR.com - All The News Only Seconds Away
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 22 May 2007 :  13:34:00  Show Profile
I forgot to mention...

What about just using frames to "hide" the whole url from the novice user. For example, the link my users click on to open the forums loads a frameset and the forum page is located within a frame. While they are browsing the forums or other pages on the site, the url in the address bar never changes.

Of course, anybody could just open the frame in a new window and then they would see the URL, but then they wouldn't have my fancy frame to look at while browsing.
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 22 May 2007 :  14:38:13  Show Profile  Visit AnonJr's Homepage
Just be careful with frames as any cookies set by the page in the frame are (generally) treated as 3rd party cookies... how that is handled depends on how the client's browser is set up. You can add a compact policy to help mitigate some of that though.

<edit: stupid typo>

Edited by - AnonJr on 22 May 2007 14:38:48
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 23 May 2007 :  04:39:49  Show Profile
There is a second argument called preserveForm in server.transfer which takes a boolean value (true/false) which, when set to true, will allow you to access any form or querystring variables that were already passed to the original page.

server.transfer("page.asp",true)


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07