multile submit buttons and Enter key

Discussion in 'ASP .Net' started by Lukas Kurka, Oct 18, 2006.

  1. Lukas Kurka

    Lukas Kurka Guest

    Hi,

    on my form i have few submit buttons. When I press Enter key the first
    button on the page submits the page... Is there way how to change this
    behavior?

    Thx
    Lukas
     
    Lukas Kurka, Oct 18, 2006
    #1
    1. Advertisements

  2. Lukas Kurka

    xAvailx Guest

    You don't say which version of asp.net you are using. In asp.net 2,
    check out the form's defaultbutton property. The following link may be
    of help..

    http://weblogs.asp.net/scottgu/archive/2005/08/04/421647.aspx

    HTH

    Lukas Kurka wrote:
    > Hi,
    >
    > on my form i have few submit buttons. When I press Enter key the first
    > button on the page submits the page... Is there way how to change this
    > behavior?
    >
    > Thx
    > Lukas
     
    xAvailx, Oct 18, 2006
    #2
    1. Advertisements

  3. Lukas Kurka

    Lukas Kurka Guest

    wow, i was looking all around the web and i missed this. thank you very much

    "xAvailx" <> wrote in message
    news:...
    > You don't say which version of asp.net you are using. In asp.net 2,
    > check out the form's defaultbutton property. The following link may be
    > of help..
    >
    > http://weblogs.asp.net/scottgu/archive/2005/08/04/421647.aspx
    >
    > HTH
    >
    > Lukas Kurka wrote:
    >> Hi,
    >>
    >> on my form i have few submit buttons. When I press Enter key the first
    >> button on the page submits the page... Is there way how to change this
    >> behavior?
    >>
    >> Thx
    >> Lukas

    >
     
    Lukas Kurka, Oct 18, 2006
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. KathyB
    Replies:
    0
    Views:
    598
    KathyB
    Jul 24, 2003
  2. DotNetGruven

    <enter> key and form submit

    DotNetGruven, Jan 20, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    1,342
    Steven Cheng[MSFT]
    Jan 23, 2004
  3. Roger
    Replies:
    1
    Views:
    828
    GreggTB
    May 20, 2005
  4. Megha Vishwanath
    Replies:
    2
    Views:
    10,371
    tutorialsmaster
    Oct 2, 2009
  5. BrianDH

    Enter Key H*ll, control enter key submit button

    BrianDH, Jan 12, 2005, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    653
    Anders Matthiessen
    Jan 12, 2005
  6. M P
    Replies:
    1
    Views:
    841
  7. Megha Vishwanath
    Replies:
    3
    Views:
    1,000
    Megha Vishwanath
    Jul 20, 2004
  8. HopfZ
    Replies:
    0
    Views:
    952
    HopfZ
    Aug 28, 2006
Loading...