why java script not work within update panel, i need add update panel to content place holder in site master in asp.net web form..but all Java script stops functioning in all other pages, is there any solution for this?
<asp:UpdatePanel ID="updater" runat="server">
<ContentTemplate>
<asp:ContentPlaceHolder runat="server" ID="MainContent" />
</ContentTemplate>
</asp:UpdatePanel>
Add this in your page, it should solve
<asp:Content ID="Content2" ContentPlaceHolderID="section2" runat="server">
<script type="text/javascript">
Sys.Application.add_load(JavascriptFunctionName);
</script>
</asp:Content>
Note : if you are calling the same function on page load you can remove
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.