Author |
Topic  |
|
ILLHILL
Junior Member
 
Netherlands
341 Posts |
Posted - 22 May 2007 : 11:38:12
|
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
|
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.
|
 |
|
ILLHILL
Junior Member
 
Netherlands
341 Posts |
Posted - 22 May 2007 : 13:19:42
|
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 |
 |
|
PPSSWeb
Junior Member
 
312 Posts |
Posted - 22 May 2007 : 13:34:00
|
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. |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 22 May 2007 : 14:38:13
|
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 |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 23 May 2007 : 04:39:49
|
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.” |
 |
|
|
Topic  |
|