1.借助 asp:ScriptManager asp:updatepanel
<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:updatepanel runat="server"> <ContentTemplate> <!--放置你的控件--> </ContentTemplate> </asp:updatepanel>
文章链接:https://blog.csdn.net/yysyangyangyangshan/article/details/39679823