1
我禁用了使用JavaScript代碼的按鈕,但我的服務器端事件沒有解僱..任何想法?ASP.Net按鈕禁用
Javascript
------------------------
function DisableButton() {
if (typeof (Page_ClientValidate) == 'function') {
Page_ClientValidate();
}
if (Page_IsValid) {
document.getElementById('<%=BtnToprimaryValidation.ClientID%>').disabled = true;
document.getElementById('<%=BtnToprimaryValidation.ClientID%>').value = 'Please wait ...';
}
}
ASP.Net
-------------------------
<asp:Button ID="BtnToprimaryValidation" runat="server"
meta:resourcekey="BtnToprimaryValidationResource1"
CssClass="submitButton">
Server Side c#
---------------------------
protected void Page_Load(object sender, EventArgs e)
{
BtnToprimaryValidation.Click += BtnToprimaryValidationClick;
}
protected void BtnToprimaryValidationClick(object sender, EventArgs e)
{
}
由於事先 拉胡爾·[R