How to jump to another page based on some conditio

Results 1 to 4 of 4

Thread: How to jump to another page based on some conditio

  1. #1
    Zahid Khan Guest

    Default How to jump to another page based on some conditio

    On one page, query.asp, I check a certain condition. If it is true, I want to jump to another page. How do I do this in ASP?

  2. #2
    besharah Guest

    Default RE: How to jump to another page based on some cond

    If the code has the execute on the server, then use<BR><BR> Response.Redirect("yourpagename") <BR><BR>to send the client the page you want them to see.<BR>If you would like to do this client side then use <BR>Window.location = "yourpage" (Javascript)<BR>

  3. #3
    Raymond Guest

    Default RE: How to jump to another page based on some cond

    &#060;%<BR>If Condition = TRUE then<BR> response.redirect "http://www.yahoo.com"<BR>ELSE<BR> response.redirect "http://www.xxxpages.com"<BR>%&#062;<BR><BR>(recognize that? hehe)<BR>Make sure that is BEFORE your starting &#060;HTML&#062; tag tho

  4. #4
    Patrick Tully Guest

    Default RE: How to jump to another page based on some cond

    Before you write anything on the brower&#039s screen, this will work:<BR><BR>if condition = true<BR> response.redirect("page2.asp")<BR>end if<BR><BR>You can only use the redirect method before you display any output to the screen.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •