I'm trying to create a Chat Room. When the chat room.aspx loads I want a timer to keep refreshing every 5 seconds that calls a routine that calls the database for user text.
I've tried using
Sub Page_Load(etc...)
Dim aTimer As New System.Timers.Time(5000)
AddHandler t.Enabled, AddressOf myFunction
aTimer.Enabled = True
End Sub
Sub myFunction(ByVal source As Object, ByVal e As ElapsedEventArgs)
//something happens
End Sub
but it doesn't seem to work
any ideas
swiv
I've tried using
Sub Page_Load(etc...)
Dim aTimer As New System.Timers.Time(5000)
AddHandler t.Enabled, AddressOf myFunction
aTimer.Enabled = True
End Sub
Sub myFunction(ByVal source As Object, ByVal e As ElapsedEventArgs)
//something happens
End Sub
but it doesn't seem to work
any ideas
swiv