ajax中 同一页面中 区别 更新多个区域的关键
关键是将updatepanel的 UpdateMode 设置为 UpdateMode="Conditional" 默认的话是always 所以同一个页面中的不同updatepanel 总不同时更新,觉的十分不爽,我们设置为 UpdateMode="Conditional",即条件更新后,情况就不同了。<div style="padding-right: 5.4pt; padding-left: 5.4pt; background: #e6e6e6; padding-bottom: 4px; width: 95%; padding-top: 4px;">http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<asp:UpdatePanelID="UpdatePanel1"runat="server"UpdateMode="Conditional">
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<ContentTemplate>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif1---<asp:LabelID="Label1"runat="server"Text="Label"></asp:Label>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<br/>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<asp:ButtonID="Button2"runat="server"Text="Button"OnClick="Button2_Click"/>
http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif<asp:ButtonID="Button1"runat="server"Text="Button"/>
页:
[1]