Sets the browser focus to the specified control
http://www.asp.net/AJAX/Documentation/Live/mref/O_T_System_Web_UI_ScriptManager_SetFocus.aspx
http://gmamaladze.googlepages.com/maintainfocusbetweenpostbacksalsoinasp.n
You can use the following code to set the focus:
ScriptManager sm = ScriptManager.GetCurrent(this);
sm.SetFocus(myTextBox);
To set focus and select text of a you have to use the following:
ScriptManager.RegisterStartupScript(this, this.GetType(), "selectAndFocus", "$get('" + myTextBox.ClientID + "').focus();$get('" + myTextBox.ClientID + "').select();", true);http://forums.asp.net/t/1099345.aspx
http://forums.asp.net/t/1199709.aspx
http://forums.asp.net/t/1131786.aspx