Page.RegisterStartupScript("focus", "<script>function window.onload() { document.YourFormName.NewPwd.focus();}</" + script>")