简体   繁体   中英

Classic ASP Response.redirect

I wish to redirect a user to another page after logon.

The code below:

Response.Redirect("../agent/info.asp")

works fine - for Safari, IE, and Chrome. Not Firefox.

The code below:

Response.Redirect("agent/info.asp")

works in Firefox, but nothing else.

If the page you are redirecting to isn't in the same directory, you're generally better off using either the full URL or the full virtual path like so (assuming /agent/ is in a directory below the root like what your example implies):

Response.Redirect("/agent/info.asp")

or

Response.Redirect("http://www.example.com/agent/info.asp")

More information and examples can be found at MSDN .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM