|
-
Jul 3rd, 2009, 05:46 PM
#1
Thread Starter
Frenzied Member
AJAX Timer Keeps Looping/PostBack problem
Hi,
I'm trying to create a 2 second Delay before I initiate a File Download Link.
The problem is, it all works but once the Save Dialog appears, then Timer is supposed to TURN OFF. But then it keeps on calling Page_Load event again, which enables the timer. So it keeps sending/showing the File Save Dialog constantly in a loop.
The thing is it seems to work when I test it on the Development machine, but when uploaded on the server it goes back to a loop.
I have this to try & prevent the loop:
Basically its a label which holds the full URL once its initialised. But empty on form_Load.
If Not lblFileURL.Text = vbNullString Then
Timer1.Enabled = False
Exit Sub
End If
How Do I prevent this. It is a PostBack problem I believe.
Last edited by some1uk03; Jul 3rd, 2009 at 05:52 PM.
_____________________________________________________________________
----If this post has helped you. Please take time to Rate it.
----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|