Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enter and Submit Buttons
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01002331
Message ID:
01002381
Vues:
18
Hi Chris,

Hmm, interesting. Generally, the only time code like this is in the forms is when it's generated by the MS framework. I checked two forms exhibiting this behavior and sure enough, the form that works with Enter has this code ( generated by MS ) and the form that does not work also does not have the code. I haven't looked at what is happening here but I'll have to take a look when I can.

>The only way that I know of to do this is to add the following code to the Page_Load() method:
>
>
>    Page.RegisterHiddenField("__EVENTTARGET", "myButton");
>
>
>Do you have code like that in your forms?
>
>>We have noted that on some of our ASP.NET forms, pressing the Enter key will properly fire the the button on the form that posts the form to the server, but on other forms with similar buttons on them, pressing the Enter key does not post the form.
>>
>>What is the cause of this and is there a way to control this behavior?
>>
>>Thanks,
>>Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform