私の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')
、その後はアラートメッセージは表示されません。