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 come Logout button link with "Enter" on keyboard?

How come Logout button link with "Enter" on keyboard?

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

    Hi, As I start my my default page, I unintentionally press "Enter" and my whole page logout out. I noticed that the button is link with the enter button. How to deal with it? Regards, Aaron

    J S 2 Replies Last reply
    0
    • D DotNet

      Hi, As I start my my default page, I unintentionally press "Enter" and my whole page logout out. I noticed that the button is link with the enter button. How to deal with it? Regards, Aaron

      J Offline
      J Offline
      Jon G
      wrote on last edited by
      #2

      you can change the TabIndex of your button to a higher number. That way, it will not be selected when your form takes focus. Jon G www.Gizmocoder.com

      1 Reply Last reply
      0
      • D DotNet

        Hi, As I start my my default page, I unintentionally press "Enter" and my whole page logout out. I noticed that the button is link with the enter button. How to deal with it? Regards, Aaron

        S Offline
        S Offline
        S Sansanwal
        wrote on last edited by
        #3

        Add JavaDcript to OnClick event of this button that confirms the LogOut operation Sanjay Sansanwal www.sansanwal.com

        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