To set the focus include this method in your page that is opened in the popup window and call the method without control name in the page load event. For example to set the focus on txtCustAccount protected void Page_Load( object sender, EventArgs e)