How do I redirect with ASP.Net?
Code:if strResultsHolder = pass.text then
[Go to URL1]
else
[Go to URL2]
end if
Printable View
How do I redirect with ASP.Net?
Code:if strResultsHolder = pass.text then
[Go to URL1]
else
[Go to URL2]
end if
Give this a whirl.
VB Code:
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
Code:if strResultsHolder = pass.text then
Response.Redirect("MyAspPage.aspx")
Else
Response.Redirect("MyOtherAspPage.aspx")
end if
I've found out
Response.Redirect does it from the client side, if you want to do it from the Server side, then you can use Server.Transfer
how do i "transfer" to a file within a different folder?