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. Advertisements

  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. 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. RA
    Replies:
    2
    Views:
    614
    Steve C. Orr [MVP, MCSD]
    Oct 21, 2003
  2. =?Utf-8?B?QmlsbCBCb3Jn?=

    Can't set imagebutton to default button

    =?Utf-8?B?QmlsbCBCb3Jn?=, Apr 27, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    3,356
    =?Utf-8?B?QmlsbCBCb3Jn?=
    Apr 28, 2005
  3. RedEye
    Replies:
    2
    Views:
    2,457
    RedEye
    Sep 7, 2005
  4. Jensen bredal

    Set a button as default "enter" input.

    Jensen bredal, Sep 21, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    6,740
    swati254
    Jun 7, 2008
  5. Lou Civitella

    Set default button

    Lou Civitella, Jan 24, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    472
    Arundhati Anavekar
    Jan 24, 2007
  6. AlecL
    Replies:
    2
    Views:
    1,000
    Alexey Smirnov
    Feb 12, 2007
  7. SibAndela
    Replies:
    1
    Views:
    340
    Jeff Cochran
    Sep 26, 2004
  8. Jack
    Replies:
    2
    Views:
    352
    Bullschmidt
    Mar 7, 2005
Loading...