<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<script type="text/javascript" >
$(document).ready(function(){
$("#btnClick").click(function(){
alert("Hello World");
});
});
</script>
<div>
<asp:Button ID="btnClick" runat="server" Text="Click" />
</div>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
这里你的脚本应该是这样的......
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<script type="text/javascript" >
$(document).ready(function(){
$("#ctl00_m_g_3b0d8e69_1961_4bea_886d_413493ff7f9c_ctl00_btnClick").click(function(){
alert("Hello World");
});
});
</script>
<div>
<asp:Button ID="btnClick" runat="server" Text="Click" />
</div>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
像这样的东西应该是你的控制 id:: $("#ctl00_m_g_3b0d8e69_1961_4bea_886d_413493ff7f9c_ctl00_btnClick").click(function()){}