在我的 aspx 文件中,我有:
<asp:UpdatePanel ID="UpdatePanel3" UpdateMode="Always" runat="server">
<ContentTemplate>
<asp:Button ID="Button1" runat="server" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>
在我的 JavaScript 文件中,我有:
$('#ctl00_ContentPlaceHolder1_Button1').click(function (e) {
alert('hello');
});
但只有第一次点击按钮,我得到了alert('hello')
,之后没有更多的警报消息。