Timer::Tick Event
.NET Framework (current version)
Occurs when the number of milliseconds specified in the Interval property has elapsed and the page is posted to the server.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The Tick event is raised when the number of milliseconds specified in the Interval property has elapsed either since the Web page was last rendered or since the previous Tick event. Handle the Tick event when you have to perform actions during each postback.
The following example shows an UpdatePanel control that displays a randomly generated stock price and the time that the stock price was generated. The Timer control updates the content in the UpdatePanel control every 10 seconds. The stock price and the time are set in a handler for the Tick event.
.NET Framework
Available since 3.5
Available since 3.5
Show: