<asp:TextBox ID="txtName" runat="server" ></asp:TextBox>
<script type="text/javascript"> document.getElementById("<%=txtName.ClientID%>").focus(); </script>
放到页面的最下面就行
Powered by: 博客园 Copyright © 2024 LonelyStar Powered by .NET 9.0 on Kubernetes