Tick of the TIMER - truly baffled

sirkhan

New Member
Below is my code (albeit crude). I am trying to create a very simple timer. However I am presented with the follwing error:<BR><BR>"Tick is not a member of System.Timers.Timer"<BR><BR>I have directly copied examples from the best ASP.NET sites out there and get this error message every time. I even tried C#. <BR>It might be possible that I only found beta 2 examples since so<BR>little of what I looked at is dated. I am on the RTM version.<BR>Anyone? Much thanks in advance. Rob<BR><BR><% @Import Namespace="System.Timers" %><BR><SCRIPT LANGUAGE="vb" RUNAT="Server"><BR>Sub PAGE_LOAD(sender As Object, e As EventArgs)<BR> Dim zTimer as New System.Timers.Timer() <BR> zTimer.Interval = 1<BR> zTimer.Enabled = True<BR> zTimer.Tick += new System.EventHandler (ExecEvent)<BR>End Sub<BR><BR>Sub ExecEvent(sender as Object, E AS EventArgs)<BR> response.Write(now())<BR>End Sub<BR></SCRIPT>Nevermind I got it.<BR>Tick has been replaced by dipose
 
Back
Top