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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Tabindex problem

Tabindex problem

Scheduled Pinned Locked Moved ASP.NET
helphtmldatabasesysadmin
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.
  • J Offline
    J Offline
    Jmshastri
    wrote on last edited by
    #1

    hello, all. I am using some ASP server controls and HTML input buttons in a single webform. Its a submit kind of webform. with username and password field. both textfields are asp controls and login button is html input button. when i type username and password and then press enter, the focus does not go on the button. But it goes to another link button which is asp server control. What tab index should i give to button so that i can solve this problem. please help, it's too urgent.

    M 1 Reply Last reply
    0
    • J Jmshastri

      hello, all. I am using some ASP server controls and HTML input buttons in a single webform. Its a submit kind of webform. with username and password field. both textfields are asp controls and login button is html input button. when i type username and password and then press enter, the focus does not go on the button. But it goes to another link button which is asp server control. What tab index should i give to button so that i can solve this problem. please help, it's too urgent.

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      I think the TabIndex value does not help here, what you might need to do is to capture the Enter press using the onkeypress event, then fire the click event for the button instead of the LinkButton. If you are using the ASP.NET 2.0, you can specify the default button using the defaultbutton property of the form element.

      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