Catch the return

Discussion in 'ASP .Net Web Controls' started by Julia, Jun 22, 2006.

  1. Julia

    Julia Guest

    Hi

    I have created a composite conrol and now I would like to catch the event
    when a user press the return key. How do I do that?

    Thanks
    Julia
     
    Julia, Jun 22, 2006
    #1
    1. Advertisements

  2. If you want to cause a default button to be clicked you use a panel in
    asp.net 20
    <asp:panel ID="Panel1" runat="server" DefaultButton="UpdateButton">
    </asp:panel>


    or you can consume the keypress event in HTML on any object within your
    control
    http://msdn.microsoft.com/library/d.../author/dhtml/reference/events/onkeypress.asp

    --
    HTH,
    Phillip Williams
    http://www.societopia.net
    http://www.webswapp.com


    "Julia" wrote:

    > Hi
    >
    > I have created a composite conrol and now I would like to catch the event
    > when a user press the return key. How do I do that?
    >
    > Thanks
    > Julia
     
    Phillip Williams, Jun 22, 2006
    #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. Matt
    Replies:
    40
    Views:
    15,154
    Dale King
    Apr 15, 2006
  2. Jacky

    Newbie - Try, Catch & Return

    Jacky, May 2, 2005, in forum: Java
    Replies:
    4
    Views:
    17,486
    Jacky
    May 4, 2005
  3. John Bailo

    Putting return() in catch block

    John Bailo, Oct 26, 2005, in forum: Java
    Replies:
    7
    Views:
    18,897
    Roedy Green
    Oct 29, 2005
  4. John Black
    Replies:
    8
    Views:
    4,505
    Xenos
    Aug 20, 2004
  5. Greenhorn
    Replies:
    15
    Views:
    1,115
    Keith Thompson
    Mar 6, 2005
  6. George
    Replies:
    6
    Views:
    500
    Rolf Magnus
    Jun 27, 2005
  7. Adam
    Replies:
    9
    Views:
    903
    red floyd
    Feb 2, 2006
  8. Marteno Rodia

    catch doesn't catch a thrown exception

    Marteno Rodia, Aug 3, 2009, in forum: Java
    Replies:
    5
    Views:
    814
    Daniel Pitts
    Aug 5, 2009
Loading...