且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

更新面板问题

更新时间:2022-11-16 09:39:20

you can use Conditional trigger instead of ContentTemplate.
that will avoid the reflection.


try This >>>>>>>>>>>>

<asp:ScriptManager ID="ScriptManager1" runat="server">
      </asp:ScriptManager>
      <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
      <ContentTemplate>
       <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
      </ContentTemplate>

      </asp:UpdatePanel>
      <asp:UpdatePanel ID="UpdatePanel2" runat="server"    >
      <ContentTemplate>
           <asp:Button ID="Button1"

          runat="server" Text="Button" />
      </ContentTemplate>
      </asp:UpdatePanel>




You should have used the property ValidationGroup instead of using UpdatePanel which does not make sense at all.

-Eduard