Friday, October 26, 2007

Ajax UpdatePanel (6) Nested UpdatePanels

Nested UpdatePanels:

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">

<ContentTemplate>

<%= DateTime.Now %>

<asp:UpdatePanel ID="UpdatePanel2" runat="server">

<ContentTemplate>

<%= DateTime.Now %>

<asp:Button ID="Button1" runat="server" Text="Button" />

</ContentTemplate>

</asp:UpdatePanel>

</ContentTemplate>

</asp:UpdatePanel>

In this code, Button1 will not update UpdatePanel1.

blog comments powered by Disqus