I'm trying to use a timer to redirect to a different page when the time elapses, but it's not working. Anyone have any idea why?
Here's the code:
The timer's properties are:
autoreset = true
enabled = true
interval = 5000
Thanks!
Here's the code:
Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub
Private Sub Timer1_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs) Handles Timer1.Elapsed
Response.Redirect("http://www.google.com")
End Sub
The timer's properties are:
autoreset = true
enabled = true
interval = 5000
Thanks!