我在母版页中有updatepanel控件,一旦删除了所有js效果和插件,就会执行该控件。 如何在updatepanel回发上注册jquery插件(或更好的jquery js和插件)以将插件保留在页面上?
母版页代码
<asp:UpdatePanel ID="UpdMain" runat="server" ChildrenAsTriggers="true" EnableViewState="true" UpdateMode="Conditional">
<ContentTemplate>
<asp:Panel ID="pnlProgressBar" runat="server" BorderWidth="3px" HorizontalAlign="Center" BackColor="White" BorderColor="#3b2d20" Width="200px" BorderStyle="Solid"
Style="z-index: 11; position: fixed; left: 50%; top: 45%; margin-left: -100px; display: none;">
<asp:Image ID="img1" runat="server" ImageUrl="images/mixedprogress.gif" /><br />
<asp:Label ID="Label22" runat="server" Text="Processing... Please Wait !" Font-Bold="True" Font-Size="15px" Font-Names="Calibri"></asp:Label>
</asp:Panel>
<asp:Panel runat="server" Width="100%" ID="pnlProgressLayer" Height="1800px" Style="z-index: 1; position: absolute; left: 0px; top: 0px; background-color: black; filter: alpha(opacity=50); mozopacity: 0.5; opacity: 0.5; display: none;">
</asp:Panel>
<div class="mobile-menu-overlay"></div>
<!-- End .mobil-menu-overlay -->
<!-- End .mobile-menu-container -->
<a id="scroll-top" href="#top" title="Top" role="button"><i class="icon-angle-up"></i></a>
<!-- Plugins JS File -->
<script src="assets/js/jquery.min.js" type="text/javascript"></script>
<script src="assets/js/bootstrap.bundle.min.js" type="text/javascript"></script>
<script src="assets/js/plugins.min.js" type="text/javascript"></script>
<!-- Main JS File -->
<script src="assets/js/main.min.js" type="text/javascript"></script>
<script type="text/javascript" src="MultiSelect/jquery.sumoselect.js"></script>
</ContentTemplate>
</asp:UpdatePanel>
即使在部分回发后,我也想保留JQuery插件。