asp-classicserver.transfer

asp Server.Transfer put parameter


i googled many samples, all show such code

Server.Transfer("/default.asp?p=news")

but i get error -An invalid character was specified in the Path parameter for the MapPath method.

can you help me?


Solution

  • Server.Transfer method actually doesn't support any kind of querystring specified in the path. You can try to store the query parameter in a session value instead.

    Some discussions: http://classicasp.aspfaq.com/general/why-won-t-querystring-values-work-with-server-execute/server-transfer.html