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