Thursday, March 22, 2012

Setting the focus on textedit box

I have a edit box in my web form. When the form is loaded I want to set the
focus on this control.
How to do that ? Thanks

Abhram JoseThe easiest, most reliable way is client side javascript:

MyControl.focus();

Here's more info:
http://wp.netscape.com/eng/mozilla/...f_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

"Abhram Jose" <abmJose@.yahoo.com> wrote in message
news:%23ue32ZH7DHA.3804@.tk2msftngp13.phx.gbl...
> I have a edit box in my web form. When the form is loaded I want to set
the
> focus on this control.
> How to do that ? Thanks
> Abhram Jose

0 comments:

Post a Comment