Hi Hilda,
There is indeed no TextBox.focus() as it wouldn't make much sense on the server (although I can imagine that a Server-side .focus() method would be able to send JavaScript to the browser. Maybe that's something for ASP.NET 2)
You'll need to emit some JavaScript to the client yourself that sets the focus from a function at the end of the file, or through the onload handler of the page.
Take a look at the RegisterClientScriptBlock and the RegisterStartupScript methods in the MSDN help. These methods allow you to send JavaScript to the browser.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|