该代码应该可以工作,但它给了我这个错误..反汇编说这个“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>