【问题标题】:UpdatePanel partial postback hits breakpoints of controls outside the PanelUpdatePanel 部分回发命中面板外控件的断点
【发布时间】:2014-12-15 16:35:14
【问题描述】:

以下是部分回帖:

<MyApp:MyOtherCustomControl runat="server" />

<asp:UpdatePanel runat="server" UpdateMode="Conditional">
  <ContentTemplate>
      <asp:LinkButton runat="server" ID="homeLink" OnClick="LoadTabHome">Update the Panel</asp:LinkButton>
  </ContentTemplate>
</asp:UpdatePanel>

我的问题是,为什么MyOtherCustomControl 中的断点会被触动?该控件不在UpdatePanel 内。

【问题讨论】:

    标签: c# asp.net ajax updatepanel postback


    【解决方案1】:

    当 UpdatePanel 执行 aSync 回发时,会执行整个页面生命周期,这就是触发所有服务器端控件断点的原因。 整个页面生命周期将被执行,任何差异都将显示在更新面板中,更新面板之外的任何内容都将因为缺少更好的词“丢弃”或被页面遗忘。 MSDN

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-29
      • 2011-04-04
      相关资源
      最近更新 更多