Timer::Tick Event

 

Occurs when the number of milliseconds specified in the Interval property has elapsed and the page is posted to the server.

Namespace:   System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
event EventHandler<EventArgs^>^ Tick {
	void add(EventHandler<EventArgs^>^ value);
	void remove(EventHandler<EventArgs^>^ value);
}

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show: