Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在按钮单击时使 asp.net 页面不透明,直到处理完成相应的按钮。
谁能帮我 ?
如果是常规回发,请在实际回发发生之前使用客户端 javascript 禁用按钮。
<asp:Button runat="server" ID="myBtn" OnClick="YourServerSidePostBack" OnClientClick="document.getElementById('<%= myBtn.ClientID %>').disabled = true;" />