Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to redirect to another page

How to redirect to another page

Scheduled Pinned Locked Moved ASP.NET
csharpquestionvisual-studiotutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Armando_Ramirez
    wrote on last edited by
    #1

    I have a simple WebForm on Visual Studio 2005 Web Developer. I have 2 textboxes with integer values in them How can I do an instruction placed on the Page_load Sub that opens a new page or redirects to a new page automatically when value from TextBox1 = TexBox2 ?? Usign Visual Basic.net? THANX

    J E 2 Replies Last reply
    0
    • A Armando_Ramirez

      I have a simple WebForm on Visual Studio 2005 Web Developer. I have 2 textboxes with integer values in them How can I do an instruction placed on the Page_load Sub that opens a new page or redirects to a new page automatically when value from TextBox1 = TexBox2 ?? Usign Visual Basic.net? THANX

      J Offline
      J Offline
      jphuphilly
      wrote on last edited by
      #2

      set the textbox to auto postback then put the redirect or open new page in the load event if ispostback and textbox1 = textbox2 then redirect or new page end if Da Intern

      1 Reply Last reply
      0
      • A Armando_Ramirez

        I have a simple WebForm on Visual Studio 2005 Web Developer. I have 2 textboxes with integer values in them How can I do an instruction placed on the Page_load Sub that opens a new page or redirects to a new page automatically when value from TextBox1 = TexBox2 ?? Usign Visual Basic.net? THANX

        E Offline
        E Offline
        enjoycrack
        wrote on last edited by
        #3

        Hi there, You can hook on KeyPress event on these 2 textboxes by using js. In the js code, you can do a comparision of these 2 textboxes, if equal, using window.open(....) to open a new page... Hope u get the idea... << >>

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups