方法有很多,我总结了两个比较实用的:
一;
<form οnsubmit="
b1.disabled=true">
<input type=submit id= b1>
</form>
<input type=submit id= b1>
</form>
二;
按钮ID.Attributes.Add(" "this.value='正在提交中,请等待……';this.disabled=true;" +
this.GetPostBackEventReference(按钮ID));
我在网上找的好多没有 “
this.GetPostBackEventReference(按钮ID) ”,这一句不可少我试过了,不然就不能触发回传事件。
转载于:https://blog.51cto.com/ccj188/93166