Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - server.transfer
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

server.transfer

 Post Reply Post Reply
Author
eagle00789 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 24 March 2003
Location: Netherlands
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote eagle00789 Quote  Post ReplyReply Direct Link To This Post 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
Using forum at Gravenrode and here and here
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
eagle00789 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 24 March 2003
Location: Netherlands
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote eagle00789 Quote  Post ReplyReply Direct Link To This Post 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
Using forum at Gravenrode and here and here
Back to Top
TYSON View Drop Down
Groupie
Groupie


Joined: 18 August 2002
Location: Australia
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote TYSON Quote  Post ReplyReply Direct Link To This Post 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
%>

Back to Top
eagle00789 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 24 March 2003
Location: Netherlands
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote eagle00789 Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2003 at 5:34am

yes it is. i MUST give a querystring for that page to work

greetings chris

Using forum at Gravenrode and here and here
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2003 at 8:43am
Server.Transfer does work with QueryStrings. If I remember correctly loose the leading slash (/)
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.