多个UpdatePanel独自刷新

摘要 : Multiple UpdatePanel refresh alone


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

上一篇 :如何在window2003上架设https协议
下一篇 :Gridview导出为Excel和怎样避免乱码