In ASP.NET 2.0 the panel control has a new DefaultButton property.
Set this property to the ID of a button control and it will be the default
button when focus is in that panel.
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"HockeyFan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've done this before by trapping keydown and checking for a CR, and
> then clicking a particular button based on which textbox the event
> happened. However, I was wondering if there's a simpler way to trap a
> carriage return in a textbox, and have it click a button?
>