alright now I know this defeats the purpose of client side vs. server side (refer to title of this thread)... What I would love to do is build my own custom progress indicator on the client showing how far a server side code has progressed. I figure if I could only get a JavaScript to fire and render a value of some control at pre-defined intervals while the server is working I could make it happen - but alas I'm beginning to believe that this is impossible. Below is some code that performs three 2 sec loops. At the end of each I want to change the visible value of a control on the browser.
This is a fun one! I'm beginning to believe that it isn't even possible.... If anyone has any ideas I would LOVE to hear them!
This is a fun one! I'm beginning to believe that it isn't even possible.... If anyone has any ideas I would LOVE to hear them!
Code:
Dim dt As Date = Now()
Dim dt2 As Date = dt.AddSeconds(2)
Do Until Now() = dt2
Loop
Response.Write("first Loop complete<br />") '(does not work - waits till postback has finished and all three responses show)
''FIRE SOME ALREADY REGESTERED JAVASCRIPT FUNC()
dt = Now()
dt2 = dt.AddSeconds(2)
Do Until Now() = dt2
Loop
Response.Write("second Loop complete <br />") '(does not work - waits till postback has finished and all three responses show)
''FIRE SOME ALREADY REGESTERED JAVASCRIPT FUNC()
dt = Now()
dt2 = dt.AddSeconds(2)
Do Until Now() = dt2
Loop
Response.Write("third Loop complete <br />") '(does not work - waits till postback has finished and all three responses show)
''FIRE SOME ALREADY REGESTERED JAVASCRIPT FUNC()
Comment