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. A basic Problem with buttons

A basic Problem with buttons

Scheduled Pinned Locked Moved ASP.NET
helplearning
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.
  • B Offline
    B Offline
    Britney S Morales
    wrote on last edited by
    #1

    Pals, i have two buttons at one form, one to logout and the other one to submit the form, i fill the form like anyone, the problem is when i press the enter button the logout button event start to working, and i want to start to run submit button, its basic but i didnt fix it. :(( gracias

    keep Learning and you never will be out of date...

    S M 2 Replies Last reply
    0
    • B Britney S Morales

      Pals, i have two buttons at one form, one to logout and the other one to submit the form, i fill the form like anyone, the problem is when i press the enter button the logout button event start to working, and i want to start to run submit button, its basic but i didnt fix it. :(( gracias

      keep Learning and you never will be out of date...

      S Offline
      S Offline
      sanju0276
      wrote on last edited by
      #2

      Hi, It looks like you have problem with naming... If you hit Enter Button....Logout Button should never perform any action and vice versa.... Please check the event handling.. hope it works. Happy Programming.

      Sanjeev

      1 Reply Last reply
      0
      • B Britney S Morales

        Pals, i have two buttons at one form, one to logout and the other one to submit the form, i fill the form like anyone, the problem is when i press the enter button the logout button event start to working, and i want to start to run submit button, its basic but i didnt fix it. :(( gracias

        keep Learning and you never will be out of date...

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

        You might want to check if the submit has the focus when you hit the Enter. Anyway, in the ASP.NET 2.0, you can have a look at the HtmlForm.DefaultButton Property[^]

        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