| Author |
Topic Search Topic Options
|
eagle00789
Mod Builder Group
Joined: 24 March 2003
Location: Netherlands
Status: Offline
Points: 132
|
Post Options
Thanks(0)
Quote Reply
Topic: server.transfer Posted: 27 May 2003 at 3:20am |
why is the below asp-script not working for my page
greetings chris
---- <% 'a lot of code is here Server.Transfer "/../content/startpagina.asp?TID=15" 'a lot of code is here to %> ----
Edited by eagle00789
|
|
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 May 2003 at 3:47am |
It could be the path is wrong, or it could be that you are on an NT4 server as Server.Transfer is part of ASP3.0 and is only available from Win2k on.
|
|
|
 |
eagle00789
Mod Builder Group
Joined: 24 March 2003
Location: Netherlands
Status: Offline
Points: 132
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 May 2003 at 3:55am |
|
well. i'm running on windows 2000 Server with iis 5.0 installed. so that can't be the problem
|
|
|
 |
TYSON
Groupie
Joined: 18 August 2002
Location: Australia
Status: Offline
Points: 142
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 May 2003 at 5:07am |
I'm pretty sure Server.Transfer() doesnt allow parameters to be included in the url,
The below code should work, Is Tid a part of the query string? <% 'a lot of code is here Server.Transfer("/../content/startpagina.asp") 'a lot of code is here to %>
|
|
|
 |
eagle00789
Mod Builder Group
Joined: 24 March 2003
Location: Netherlands
Status: Offline
Points: 132
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 May 2003 at 5:34am |
yes it is. i MUST give a querystring for that page to work
greetings chris
|
|
|
 |
michael
Senior Member
Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 May 2003 at 8:43am |
|
Server.Transfer does work with QueryStrings. If I remember correctly loose the leading slash (/)
|
|
|
 |
MorningZ
Senior Member
Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 May 2003 at 9:53am |
wow, i love when people try to use a function/sub and have absolutely no idea how it works or what it does
Server.Transfer("/../content/startpagina.asp")
is flawed in that you tell it to "Start at Root" (the blue slash), then "Go up a directory" (the green dots), then look for your file
well, you cannot go higher than root, its not within scope of the web server
|
|
Contribute to the working anarchy we fondly call the Internet
|
 |
MorningZ
Senior Member
Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 May 2003 at 9:55am |
and btw, when you trasnfer to another page:
Request.QueryString Request.Form
is available as well, but you don't "feed" them through the call to the transfer
|
|
Contribute to the working anarchy we fondly call the Internet
|
 |