Here is one way to do it (using body onLoad event):
<body onLoad='<%= "window.document.forms[0]." + TextBoxID.ClientID +
".focus();" %>'>
OR
<body onLoad='window.document.forms[0].<%= TextBoxID.ClientID %>.focus();'>
how to set the default cursor position to the one textbox in asp.net