<asp:TextBox ID="txtName" runat="server" ></asp:TextBox>

<script type="text/javascript">
  
        document.getElementById("<%=txtName.ClientID%>").focus();
  
   </script>

放到页面的最下面就行

相关文章:

  • 2022-12-23
  • 2021-12-19
  • 2021-11-27
  • 2022-12-23
  • 2022-03-10
  • 2021-11-18
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2022-02-08
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案