There is nothing to return focus to the last control. You can write a
routine that does this, by setting a variable on OnFocus() that dictates
which control was in focus and the reset focus when the button click event
is fired. It is a bit more work.
NOTE: In general, UI is easier when you can seaprate out concerns rather
than having multiple forms on one page. I realize this is not always
possible, but I have also seen many UIs where it was possible and wsa not
done.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
*************************************************
Think outside of the box!
*************************************************
"Darren Carter" <Da**********@discussions.microsoft.comwrote in message
news:61**********************************@microsof t.com...
Hi,
I have mutliple asp:Panel controls on a single page, each with a default
button defined (each default button resides within its respective
asp:Panel).
All validation controls and buttons within each panel also have separate
ValidationGroups defined. When an asp:Textbox has focus in one of the
Panels
and I press the enter key, my validation works great. If I press the
enter
key a second time, the first button on the page's onClick event fires.
Has
anyone experienced this before? Any suggestions?
Thanks,
Darren