Silk Webware Home Our Products Contact Us Development Services
WEBTIMER
Details
VB.Net Examples
C# Examples
Toolbox Setup
Download Control
Purchase Control
Online Demo


Recent Award 
Download all of our Webcontrols

Download all of our Webcontrols. Fully functional trial versions. Includes simple setup instructions and demo code.


 



Smartphone Software 

© SilkWebware 2010 




  Using WebTimer (Elapsed Event)
  Drag a WebTimer WebControl from your toolbox onto a aspx page (WebForm). If you do not have a WebTimer WebControl in your toolbox please read VS.Net Setup for full instructions. Double Click on the WebControl (within the WebForm designer). You will notice that visual studio has created the Elapsed event. (WebTimer1_Elapsed if your WebTimer is named WebTimer1). This event is called each time WebTimer activates (Causes Form Postback or Submit).
You can change Interval between postback by setting the Interval property. By default this is set at 5000 Milliseconds (5 Seconds). You can disable WebTimer by setting the Enabled property to false.
Note Javascript must be enabled on the users browser for WebTimer to work.
 

private void WebTimer1_Elapsed(object sender, System.EventArgs e)
{
   //create a test string to write to the page each time the Elapse event fires
   string strTest = "This is a test " + DateTime.Now.Millisecond;
   Response.Write(strTest);

}