Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set focus to a textbox
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00813122
Message ID:
00813178
Views:
8
You can also place the code in the code-behind. See the following tip in the Dec. 2002 UT Magazine (it's the first tip):

http://www.levelextreme.com/magazine/december2002/Page3.asp


>javascript
>
>function somefunctioname(){
> form1.mytextbox.focus()
> }
>
>html body tag add
>< body onload="somefunctioname()" >
>
>HTH
>Jeff
>>How can I set focus to a certain textbox in my ASP.Net webform?
>>
>>Thanks,
>>
>>Jerry
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform