Web Form - Default Button For Enter Key

Discussion in 'ASP .Net Web Controls' started by James, Sep 11, 2003.

  1. James

    James Guest

    I created a web form (runat=server) and included multiple
    asp:button controls. Pressing the enter key defaults to
    actions for the first button created.

    How do I set which button the enter key affects? In
    windows programming it is the default push button.
     
    James, Sep 11, 2003
    #1
    1. Advertising

  2. Hi James,

    Please check these links and you can find the answer in them.

    http://groups.google.com/groups?q=g:thl3418049033d&dq=&hl=zh-CN&lr=lang_zh-C
    N|lang_zh-TW|lang_nl|lang_en&ie=UTF-8&oe=UTF-8&selm=wbHl6ve0BHA.2352%40cpmsf
    tngxa08

    http://groups.google.com/groups?q=g:thl3982285673d&dq=&hl=zh-CN&lr=lang_zh-C
    N|lang_zh-TW|lang_nl|lang_en&ie=UTF-8&oe=UTF-8&selm=UUulTxzdDHA.2080%40cpmsf
    tngxa06.phx.gbl

    Please let me know if you need more information. Thanks.

    Best regards,
    Lewis
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    | Content-Class: urn:content-classes:message
    | From: "James" <>
    | Sender: "James" <>
    | Subject: Web Form - Default Button For Enter Key
    | Date: Thu, 11 Sep 2003 14:58:39 -0700
    | Lines: 6
    | Message-ID: <1e8301c378af$db8a9c10$>
    | MIME-Version: 1.0
    | Content-Type: text/plain;
    | charset="iso-8859-1"
    | Content-Transfer-Encoding: 7bit
    | X-Newsreader: Microsoft CDO for Windows 2000
    | X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    | Thread-Index: AcN4r9uKIOIyhP6jS+CJZ+MylygWew==
    | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
    | Path: cpmsftngxa06.phx.gbl
    | Xref: cpmsftngxa06.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webcontrols:14585
    | NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
    |
    | I created a web form (runat=server) and included multiple
    | asp:button controls. Pressing the enter key defaults to
    | actions for the first button created.
    |
    | How do I set which button the enter key affects? In
    | windows programming it is the default push button.
    |
     
    Lewis Wang [MSFT], Sep 12, 2003
    #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. Flip
    Replies:
    2
    Views:
    8,339
    Saravana
    Nov 18, 2004
  2. BrianDH

    Enter Key H*ll, control enter key submit button

    BrianDH, Jan 12, 2005, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    402
    Anders Matthiessen
    Jan 12, 2005
  3. M P
    Replies:
    1
    Views:
    481
  4. Matt
    Replies:
    1
    Views:
    510
    Michael Winter
    Mar 6, 2004
  5. HopfZ
    Replies:
    0
    Views:
    576
    HopfZ
    Aug 28, 2006
Loading...

Share This Page