Re: Server.Transfer error

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ray at <%=sLocation%> [MVP] (%=sLocation%)
Date: 05/25/04


Date: Mon, 24 May 2004 20:27:17 -0400

In NT, you had to be doing a Response.Redirect, not a server.Transfer, since
that didn't exist in IIS 4. You cannot do a server.transfer with a
querystring. When you server.transfer, the querystring in the original
request will be available in the target page, however. So, if you
server.transfer from yourpage.asp?x=1 to secondpage.asp, you can still
access Request.Querystring("x").

Ray at home

"Eugene" <anonymous@discussions.microsoft.com> wrote in message
news:5240F5E1-C4D2-4524-A818-D0A7CBDC9543@microsoft.com...
> Hi,
>
> I user Server.Transfer "MyTest.asp" to redirect the ASP page and it went
through successfully.
> If I used Server.Transfer "MyTest.asp?R=22"
> The system return "An invalid character was specifiied in the Path
parameter for the MapPath method." error.
> (It seems that system treat parameter string as body of path)
>
> This ASP works fine in Windows NT server, but it does not work on Windows
2003 server.
>
> Where I am doing wrong?
>
>
> Thanks



Relevant Pages

  • Re: Server.Transfer error
    ... > (It seems that system treat parameter string as body of path) ... > This ASP works fine in Windows NT server, but it does not work on Windows ...
    (microsoft.public.inetserver.asp.general)
  • Re: Adding name-value pair to QueryString Collection?
    ... in the page load event, would check if the formSessionId variable is set ... to the server. ... Basically what I want to do is check the QueryString in the Load event ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: URLScan and SQL Injection
    ... you define how the web server is disallowing key words. ... querystring to detect the disallowed keywords. ... recipient app -- how is the server supposed to know that the recipient app ...
    (microsoft.public.inetserver.iis.security)
  • Re: Understanding query strings
    ... >a gridview that shows details about that server. ... > What I would like to do is add the ability to pass a querystring to the ... > ability to change the server name once I get to the page if I need to. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Extract querystring - should be simple!
    ... There SHOULD be something built in to parse a ... > If any part of your querystring is encoded, ... > it before you begin parsing it, or you'll just be parsing out ... Mostly because the querystring is meant for a server, ...
    (microsoft.public.scripting.jscript)