why my timer component doesn't run?

  • Thread starter Thread starter Mike Hanson
  • Start date Start date
M

Mike Hanson

Are you sure the event is not firing, I have re-created
your Web Form as best I can with the information provided
and the event fires ok, but it still does not write
anything to the page.

Not sure why this is, but will look at it some more

Mike Hanson
MCSE, MCSD, MCDBA, MCT
 
I think part of your problem is that the Timer1_Elapsed
event is firing even before the Page_Load event fires.

Try this and see if it helps

1. Add a Boolean variable to your class, with an intial
value of false
2. Set this variable to true in your Page_Load event
3. In the Timer1_Elapsed event only call Response.Write()
if the variable is true.

NB: I haven't provided the code as I don't really do
VB.NET and didn't want to give you an incorrect example.

Mike Hanson
MCSE, MCSD, MCDBA, MCT
 
Back
Top