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.comwww.prenia.comWeblog: blogs.prenia.com/cathi