ASP.NET中防止重复提交

解决方法:

              .Framework2.0中才有的button属性:<asp:button id="btnSubmit" onclick="btnSubmit_Click" runat="server"  OnClientClick="this.disabled=true;this.form.submit();" UseSubmitBehavior="False" /> 

            解决重复提交:OnClientClick="this.disabled=true;this.form.submit();" UseSubmitBehavior="False"

摘录自:http://www.cnblogs.com/fan2k/archive/2008/03/10/1098240.html

posted @ 2009-05-11 14:14  牛腩  阅读(294)  评论(1编辑  收藏  举报