Click to See Complete Forum and Search --> : Redirect
hpl
Dec 6th, 2002, 06:30 AM
How do I redirect with ASP.Net?
if strResultsHolder = pass.text then
[Go to URL1]
else
[Go to URL2]
end if
Emerican
Dec 6th, 2002, 07:05 AM
Give this a whirl.
if strResultsHolder = pass.text then
Response.Write("<script language=Javascript>window.location.url='truePage.htm';</script>")
else
Response.Write("<script language=Javascript>window.location.url='falsePage.htm';</script>")
end if
EyeTalion
Dec 6th, 2002, 07:37 AM
if strResultsHolder = pass.text then
Response.Redirect("MyAspPage.aspx")
Else
Response.Redirect("MyOtherAspPage.aspx")
end if
hpl
Dec 6th, 2002, 07:55 AM
I've found out
Serge
Dec 10th, 2002, 11:50 AM
Response.Redirect does it from the client side, if you want to do it from the Server side, then you can use Server.Transfer
tmashley
May 21st, 2003, 03:57 AM
how do i "transfer" to a file within a different folder?
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.