Saturday, March 24, 2012

Set Focus to a Text Box Field on a User Web Control

I would like to set focus to a text box field on a user web control. Does
anyone have suggestions on how I should approach this?Something basic like this should work:

Response.Write "<script language = javascript>"& MyTextBox.ClientID &
".focus()</script>"

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Mike Moore" <MikeMoore@.discussions.microsoft.com> wrote in message
news:8EEBC0E1-E38B-4B43-9D8A-889C3E85DF1B@.microsoft.com...
>I would like to set focus to a text box field on a user web control. Does
> anyone have suggestions on how I should approach this?

0 comments:

Post a Comment