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. Disable the Defalut button porperty while user click enter key on the form

Disable the Defalut button porperty while user click enter key on the form

Scheduled Pinned Locked Moved ASP.NET
help
5 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.
  • K Offline
    K Offline
    kinnuP
    wrote on last edited by
    #1

    hi all, when user click enter on the form the page is submitting . i d'nt want to submit the page while user click enter on the form .please give some soultion for this issue . Thanks And Regards, Guru

    A 1 Reply Last reply
    0
    • K kinnuP

      hi all, when user click enter on the form the page is submitting . i d'nt want to submit the page while user click enter on the form .please give some soultion for this issue . Thanks And Regards, Guru

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      try with java script window.event.keyCode

      Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"

      K 1 Reply Last reply
      0
      • A Abhijit Jana

        try with java script window.event.keyCode

        Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"

        K Offline
        K Offline
        kinnuP
        wrote on last edited by
        #3

        sorry yar it is not working for my case . the problem is whenever the user Edit the page i am doing All the fields are readonly and set tabindex property to -1; whenever he click enter on the form the button activate dfault . Note:pls let me know if it is not clear to you. Thanks And Regards, Guru

        A 1 Reply Last reply
        0
        • K kinnuP

          sorry yar it is not working for my case . the problem is whenever the user Edit the page i am doing All the fields are readonly and set tabindex property to -1; whenever he click enter on the form the button activate dfault . Note:pls let me know if it is not clear to you. Thanks And Regards, Guru

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          AS per my understanding , you have one "Enter" button, and you want user should click on it !! not pressing Enter key !!! am i clear ?

          Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"

          K 1 Reply Last reply
          0
          • A Abhijit Jana

            AS per my understanding , you have one "Enter" button, and you want user should click on it !! not pressing Enter key !!! am i clear ?

            Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"

            K Offline
            K Offline
            kinnuP
            wrote on last edited by
            #5

            yes i have allow the user to click on the button then only it have submit . if he press enter key it can not be submit.

            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