I got a text box named monitor and the timer should read from a sesion.txt file into the textbox..but i cannot see it....what am i mising?
Dim path As String = Server.MapPath("~/app_data/sesion.txt")
Dim t As New System.Timers.Timer(8000)
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
AddHandler t.Elapsed, AddressOf TimerFired
t.Enabled = True
End Sub
Public Sub TimerFired(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs)
If IsPostBack Then
monitor.Text = My.Computer.FileSystem.ReadAllText(path)
End If
End Sub
2007-01-17
11:28:53
·
2 answers
·
asked by
kain_odeh
2
in
Computers & Internet
➔ Programming & Design
is there any way I can do a timer in vb
if not what is the code in javascript and were should i put it
...thanks for the help
2007-01-17
11:52:32 ·
update #1