There are a lot of cases in ASP where you would need to redirect or send a user from one page to another. One example would be if you have a membership based website. When the user logs in with his/her username and password, this information is checked by a verification script. If their login is verified, they are sent to the member page. If there username and password is incorrect, they are sent to an error page. Redirecting users is easy and only consists of one line of code:
<% Response.Redirect("/index.asp") %>
All you have to do is enter the relative path to the desired page and away your user goes!
http://www.aspwebpro.com/aspscripts/miscellaneous/redirectuser.asp
No comments:
Post a Comment