Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default ENTER key press to button click event
Message
De
30/01/2004 15:49:02
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00872282
Message ID:
00872522
Vues:
28
That is wild. Thank you. Any chance at a c# incarnation or is it basically the same?

Neil

>I found this code here long time ago:
>
>
>   Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
>
>        ' This causes the page to associate Enter key with cmdAddIt button click event.
>        ' (source: Universal Thread Message ID: 814613, http://www.levelextreme.com)
>        Page.RegisterHiddenField("__EVENTTARGET", "cmdAddIt")
>
>    End Sub
>
>
>
>Also, take a look at thread 849502
>
>
>>Hi,
>>
>>I have a web form with a 2 buttons: CLOSE (btnClose) and SAVE (btnSave). I would like the ENTER key on the keyboard to fire the click event of the SAVE button. What property do I set to make the ENTER key the default. OR... do I need to include a method in an event handler.
>>
>>Regards,
>>Neil
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform