Let the storm money come!

asp.net 防止重复提交

如果你的按钮是 <asp:button 则使用这个方法最简单 

  OnClientClick="this.disabled=true;" UseSubmitBehavior="false" 

 

如果你的OnClientClick事件里还有别的函数,来验证是否点击提交 

OnClientClick="if(!requiredSelect())return false;this.disabled=true;"

 

 

posted @ 2012-08-22 16:46  精密~顽石  阅读(217)  评论(0编辑  收藏  举报
在通往地狱的路上,加班能使你更快到达。