default form button

Discussion in 'ASP .Net' started by Jason, Feb 24, 2004.

  1. Jason

    Jason Guest

    I know this is going to be a stupid question, but I'm in a crunch and don't
    have time to research it as much as I'd like. How do you tell the web form
    which button is the default button. So if a user fills out the form and
    hits enter instead of clicking the submit button, the correct button gets
    triggered.

    In other words I have a web form with a cancel button and a submit button
    and when I go into the form the and fill it out and hit enter the cancel
    button is getting triggered and not the submit button.

    Thanks in advance,

    Jason
     
    Jason, Feb 24, 2004
    #1
    1. Advertising

  2. Your post went unanswered. Have you resolved this issue?

    --
    Regards,
    Alvin Bruney [ASP.NET MVP]
    Got tidbits? Get it here...
    http://tinyurl.com/3he3b
    "Jason" <> wrote in message
    news:%235i1Ciu%...
    > I know this is going to be a stupid question, but I'm in a crunch and

    don't
    > have time to research it as much as I'd like. How do you tell the web

    form
    > which button is the default button. So if a user fills out the form and
    > hits enter instead of clicking the submit button, the correct button gets
    > triggered.
    >
    > In other words I have a web form with a cancel button and a submit button
    > and when I go into the form the and fill it out and hit enter the cancel
    > button is getting triggered and not the submit button.
    >
    > Thanks in advance,
    >
    > Jason
    >
    >
     
    Alvin Bruney [MVP], Mar 2, 2004
    #2
    1. Advertising

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. Shixx
    Replies:
    0
    Views:
    934
    Shixx
    Jun 8, 2004
  2. Patrick Steele [MVP]

    Re: Set button as default on web form

    Patrick Steele [MVP], Jul 14, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    402
    Patrick Steele [MVP]
    Jul 14, 2003
  3. Steve C. Orr, MCSD

    Re: Set button as default on web form

    Steve C. Orr, MCSD, Jul 14, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    443
    Steve C. Orr, MCSD
    Jul 14, 2003
  4. Andrew Crowe
    Replies:
    2
    Views:
    16,290
    Jukka K. Korpela
    Feb 6, 2004
  5. AlecL
    Replies:
    2
    Views:
    840
    Alexey Smirnov
    Feb 12, 2007
Loading...

Share This Page