我正在使用母版页。我在 UpdatePanel 中的 contentplaceholder。在我的内容页面中,我保留了数据。一些数据在另一个更新面板中。在 contentpage 中有一个按钮。当按钮单击事件触发时,它也会刷新子更新面板。我不希望这种情况发生。我怎样才能实现它?
Code
母版页
<UpdatePanel>
<asp:contentplaceholder id="c1"> </contentplaceholder>
<UpdatePanel>
页
<asp:content id="content" contentplaceholderid="c1">
// This button fire the event
<asp:button> </asp:button>
// Don't want to refresh this panel.
<UpdatePanel id="childUpdatePanel" UpdateMode="Conditional">
</UpdatePanel>
</asp:content>