Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timer control please help

Status
Not open for further replies.

swiv

Programmer
Sep 18, 2002
20
GB
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
 
thanks for the link but I can't get past your password protection
 
You can try using Meta Tags for this:

<META HTTP-EQUIV=Refresh CONTENT=&quot;10; URL=http://www.dotnet-webhosting.com/&quot;>
 
I am using Meta Refresh at the moment but it makes the page blink and I was hoping to use the smart navigation control to make it look neater.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top