Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting a default command button
Message
De
29/07/2003 13:27:32
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
29/07/2003 12:50:10
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00814142
Message ID:
00814613
Vues:
18
Thanks, that did it.

Jerry



>Jerry,
>
>Sorry seemed to skip that snippet of information ;-) However, the whole issue of focus on webforms is quite the can of worms. There are a number of solutions available all with various issues associated with them, but one works pretty much all of the time (except for a curious bug when there is only one textbox on a form?).
>
>private void Page_Load(object sender, System.EventArgs e)
>{
>// This causes the page to associate Enter key with btnSearch click.
>Page.RegisterHiddenField( "__EVENTTARGET", "btnSearch" );
>}
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform