方法一:
<body MS_POSITIONING= "GridLayout ">
<form id= "userlist " method= "post " runat= "server ">
<INPUT id= "Text1 " style= "Z-INDEX: 103; LEFT: 271px; POSITION: absolute; TOP: 131px " type= "text " name= "Text1 " runat= "server ">
</form>
<script language= "javascript ">
userlist.Text1.focus();
</script>
</body>
方法二:
前台
<body οnlοad= "window.document.forms[0].textbox1.focus() ">
后台
Page.RegisterStartupScript( "focus ", " <script> form1.TextBox1.focus() </script> ");
注意:这里的form1是指源里FORM的ID名称。