在asp.net UpdatePanel 执行脚本JS

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server"><ContentTemplate >
</ContentTemplate></asp:UpdatePanel>
 
<script type="text/javascript">
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(blah);
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(blah2);
function blah() {
    alert("结束时执行");    
}
function blah2() {
    alert("开始时执行");        
}
</script>

你可能感兴趣的:(在asp.net UpdatePanel 执行脚本JS)