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. Redierct to another page when we press on Enter Key instead of Submit button

Redierct to another page when we press on Enter Key instead of Submit button

Scheduled Pinned Locked Moved ASP.NET
help
2 Posts 2 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.
  • H Offline
    H Offline
    honeyss
    wrote on last edited by
    #1

    HI I had two textboxes username and password and a button(Submit). Now if i press Enter Key from Keyboard instead of clicking on Submit button the page should be automatically redirected to another page.......... Please some one help me.......... Thanks in Advance

    J 1 Reply Last reply
    0
    • H honeyss

      HI I had two textboxes username and password and a button(Submit). Now if i press Enter Key from Keyboard instead of clicking on Submit button the page should be automatically redirected to another page.......... Please some one help me.......... Thanks in Advance

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

      in the password text box u write this javascript so that it will automatically calls the submit button when enter key is pressed... go to source code and in password text box u write onkeydown ="return submitClick(window.event)" in javascript function suubmitClic() { if(event.keycode==13)//enter key asci code.. { document.getElementbyid("sumit button name.ClientID").click(); } }

      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