Friday, October 26, 2007

Ajax UpdatePanel (3) Triggers 1:

Triggers (1):



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

<ContentTemplate>

<%= DateTime.Now %>

</ContentTemplate>

<Triggers>

<asp:AsyncPostBackTrigger ControlID="Button1" />

</Triggers>

</asp:UpdatePanel>

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

In this code, Button1 will update the UpdatePanel1.

blog comments powered by Disqus