コードは機能するはずですが、このエラーが発生しています..逆アセンブリでは、「AjaxControlToolkit.ExtenderControlBase.OnLoad(System.EventArgs)」と表示されます
var timeoutID;
function delayedAlert() {
document.getElementById('<%= Label3.ClientID %>').style.display = 'inherit';
timeoutID = window.setTimeout(labelhide, 3000);
}
function labelhide() {
document.getElementById('<%= Label3.ClientID %>').style.display = 'none';
}
テキストボックス
<asp:Button ID="Button1" runat="server" Onclick = "Button1_Click"
OnClientClick = "javascript:delayedAlert(); return SubmitForm();"
Text="Submit" Width="98px"/>
ラベル
<asp:Label ID="Label3" runat="server" Text="Entry Successful!" Visible="False" ForeColor="Lime" ></asp:Label>