Sunday, October 28, 2007

Ajax UpdatePanel (9) Timer

Timer:

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

<ContentTemplate>

<%= DateTime.Now %>

<asp:Timer ID="Timer1" runat="server" Interval="1000">

</asp:Timer>

</ContentTemplate>

</asp:UpdatePanel>

In this code, the time will updated every 1 second.

blog comments powered by Disqus