G
Guest
Hi everybody,
I'm using a system.timers.timer object like this:
Dim aTimer As New System.Timers.Timer()
In my page_load event I use this:
aTimer.Interval = 5000
aTimer.Enabled = True
AddHandler aTimer.Elapsed, AddressOf OnTimedEvent
.....
Private Sub OnTimedEvent(ByVal source As Object, ByVal e As
System.Timers.ElapsedEventArgs)
response.redirect(....)
End Sub.
Well, I recieved an error in response.redirect sentence,
"response is not available in this context".
I can see that httpcontext.current is nothing and I don't know why.
If I use server.transfer instead of response, I get the same error.
How could I do this without using javascript either Meta Tags?
Why do it happen this?
Regards,
Alberto.
I'm using a system.timers.timer object like this:
Dim aTimer As New System.Timers.Timer()
In my page_load event I use this:
aTimer.Interval = 5000
aTimer.Enabled = True
AddHandler aTimer.Elapsed, AddressOf OnTimedEvent
.....
Private Sub OnTimedEvent(ByVal source As Object, ByVal e As
System.Timers.ElapsedEventArgs)
response.redirect(....)
End Sub.
Well, I recieved an error in response.redirect sentence,
"response is not available in this context".
I can see that httpcontext.current is nothing and I don't know why.
If I use server.transfer instead of response, I get the same error.
How could I do this without using javascript either Meta Tags?
Why do it happen this?
Regards,
Alberto.