ScriptManager添加EnablePartialRending属性
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">         </asp:ScriptManager>

 

所有的UpdatePanel需要设置UpdateMode="Conditional":
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">                                                 <ContentTemplate>                                                                                                    </ContentTemplate>                                                 <Triggers>                                                     <asp:AsyncPostBackTrigger ControlID="" EventName="Click" />                                                 </Triggers>                                             
</asp:UpdatePanel> 

 

其他操作是一样,这样,在同一个页面上的多个UpdatePanel可以独自刷新,不会互相影响了!

相关文章:

  • 2022-03-10
  • 2021-05-20
  • 2021-07-21
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2021-06-16
猜你喜欢
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-02-09
  • 2021-09-06
  • 2021-08-06
  • 2021-08-11
相关资源
相似解决方案