if user chooses condition 1 and 2, he would move to form A.
otherwise, if he chooses condition 3 and 4, he would move to form B.
how to use response.redirect to do this? or is there any other way to implement this?
for one, the page must have <% Response.buffer = True %> at the top, and you must not send back or flush the buffer prior to a redirect otherwise you'll get an error, if you end up not redirecting at all use Response.Flush, then Response.end to end the page, and show it's content, otherwise Response.Redirect URLHere, then Response.end after it so it doesnt continue to process the rest of the page.
<%
select case error
Case 1: Response.Redirect("formA.asp"
Case 2: Response.Redirect("formA.asp"
Case 3: Response.Redirect("formB.asp"
Case 4: Response.Redirect("formB.asp"
end select
%>
----------------------------------------------------
or if they are in the same page, bookmark it then
<%
select case error
Case 1: Response.Redirect("page.asp#formA"
Case 2: Response.Redirect("page.asp#formA"
Case 3: Response.Redirect("page.asp#formB"
Case 4: Response.Redirect("page.asp#formB"
end select
%>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.