Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Command Button
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00838919
Message ID:
00838965
Views:
30
Thanks, Cathi ... I don't need to use it right now (not working on any WebForms), but I thought others reading the thread might benefit.

~~Bonnie


>Bonnie,
>
>Yes, you can also use the following javascript code to set a default button. The class just contains a built in control that allows you to set a property instead of needing to add javascript. Here is the code that is involved to do it manually:
>
>
>Page.RegisterHiddenField("__EVENTTARGET", "btnSearch")
>
>
>>Cathi,
>>
>>Isn't there just some javascript that will set a default button? Or am I hallucinating? <g>
>>
>>~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform