Use the Page.SetFocus(string) method to make the control with the specified ID string the active control in the Web page displayed by the browser. The Page.SetFocus(string) method must be called before the page is prepared for rendering to the client in the Control.PreRender event.
The Page.SetFocus(string) method will work only on browsers supporting ECMAScript version 1.3 or later.