使用UpdatePanel时出现table can't place inside updatePanel,table不能嵌套在updatepanel中的错误

起初以为是WEB.Config未配置好或System.Web.Extensions或Microsoft.web.Preview未引用

最后通过GOOGLE搜到关于table can't place inside updatePanel的文章

使用<ContentTemplate>即可解决问题:

Code:

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate>
         <table>.....</table>
   </ContentTemplate>
</asp:UpdatePanel>

很简单的原因,却被自己忽略,所以记录下来,加深印象

相关文章:

  • 2021-09-09
  • 2021-08-21
  • 2021-05-21
  • 2022-12-23
  • 2021-12-21
  • 2022-01-26
  • 2021-09-17
猜你喜欢
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
  • 2021-07-24
  • 2022-12-23
相关资源
相似解决方案