Print Page | Close Window

server.transfer

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=3048
Printed Date: 29 March 2026 at 10:15am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: server.transfer
Posted By: eagle00789
Subject: server.transfer
Date 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
%>
----



-------------
Using forum at http://www.gravenrode.nl/forum/forum - Gravenrode and http://www.gravenrode.nl/forum/test_forum - here and http://217.121.39.22/forum/test_forum - here



Replies:
Posted By: WebWiz-Bruce
Date 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.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: eagle00789
Date 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 http://www.gravenrode.nl/forum/forum - Gravenrode and http://www.gravenrode.nl/forum/test_forum - here and http://217.121.39.22/forum/test_forum - here


Posted By: TYSON
Date 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
%>



-------------
http://www.fuo-motorsports.com/ - http://www.fuo-motorsports.com/


Posted By: eagle00789
Date 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 http://www.gravenrode.nl/forum/forum - Gravenrode and http://www.gravenrode.nl/forum/test_forum - here and http://217.121.39.22/forum/test_forum - here


Posted By: michael
Date Posted: 27 May 2003 at 8:43am
Server.Transfer does work with QueryStrings. If I remember correctly loose the leading slash (/)

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: MorningZ
Date 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


Posted By: MorningZ
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net