如何点击服务器Button按钮后变为不可点

ASP.NET初学者都会遇到的一个问题,网上找到的方法也是良莠不齐,相信下面这个方法是最好的


string scrīpt = ClientScrīpt.GetPostBackEventReference(this.Button1, null);
this.Button1.Attributes.Add("onclick", "window.document.getElementById('" + this.Button1.ClientID + "').disabled = true;" + scrīpt);


其原理就是发送js到客户端令按钮的disabled为真并回传 

原文地址:https://www.cnblogs.com/zhuawang/p/704256.html