Results 1 to 4 of 4

Thread: What to write in a web form aspx.vb file to navigate to another web page

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    Hong Kong
    Posts
    38

    What to write in a web form aspx.vb file to navigate to another web page

    This should be a naive question but too bad, I don't know.
    In my handling code of a button click, I need to write command to navigate to another page of my choice. What should I write ?

    Regards.

  2. #2

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    Hong Kong
    Posts
    38
    Oh, I got it!

    It should be response.redirect

  3. #3
    Lively Member
    Join Date
    Aug 1999
    Location
    Amsterdam
    Posts
    117
    That depends, you should also take a look at Server.Transfer()

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    Hong Kong
    Posts
    38
    Hi, gijsj,

    Thanks for your suggestion. Aftering reading some document, I guess that server.transfer should be more effective for web page on the same server whereas the response redirect works for other sites and it requires additional HTTP traffic over the network. I need server.transfer in my current case.

    Thank you.

Posting Permissions

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



Click Here to Expand Forum to Full Width