The easiest, most reliable way is client side javascript
:
MyControl.focus();
Here's more info:
http://wp.netscape.com/eng/mozilla/3..._f-g.htm#59872
You might also consider using this free control:
http://www.metabuilders.com/Tools/FirstFocus.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at
http://www.able-consulting.com
"Mike" <no****@nospam.com> wrote in message news:O6*************@TK2MSFTNGP12.phx.gbl...
Hi,
I have a webform with two textboxes and two buttons. I would like to set the focus to the first textbox when the page is displayed. I tried to change the TabIndex, but apparently, it does not have any effect. Any idea on how I could do that?
Thanks
Mike