现在的位置: 首页 > 综合 > 正文

同一页面放置多个UpdatePanel

2014年01月02日 ⁄ 综合 ⁄ 共 864字 ⁄ 字号 评论关闭

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可以独自刷新,不会互相影响了!

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/sntyy/archive/2008/06/18/2560469.aspx

抱歉!评论已关闭.