How do I set the default command button?

Discussion in 'ASP General' started by John Svercek, Jun 5, 2005.

  1. John Svercek

    John Svercek Guest

    On an aspx page, I notice when the page opens there is no default command
    button (press enter & nothing happens). However, once I set the focus on a
    text field one of the command buttons becomes the default (press enter & the
    command button is executed). How do I define which button should be the
    default and can I change it depending on the text box I am in?

    I am using VB .Net for development of a web service that presents the pages.
    --
    John Svercek
    John Svercek, Jun 5, 2005
    #1
    1. Advertising

  2. John Svercek

    Jeff Cochran Guest

    On Sun, 5 Jun 2005 13:09:02 -0700, John Svercek
    <> wrote:

    >On an aspx page...


    This group is for classic ASP, you want to try your post in an ASP.NET
    group. Those with "dotnet" in the name.

    Jeff
    Jeff Cochran, Jun 5, 2005
    #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. Steve C. Orr [MVP, MCSD]

    Re: Default Command Button

    Steve C. Orr [MVP, MCSD], Sep 10, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,172
    Steve C. Orr [MVP, MCSD]
    Sep 10, 2004
  2. RedEye
    Replies:
    2
    Views:
    2,397
    RedEye
    Sep 7, 2005
  3. AlecL
    Replies:
    2
    Views:
    812
    Alexey Smirnov
    Feb 12, 2007
  4. SibAndela
    Replies:
    1
    Views:
    179
    Jeff Cochran
    Sep 26, 2004
  5. Jack
    Replies:
    2
    Views:
    162
    Bullschmidt
    Mar 7, 2005
Loading...

Share This Page