ASP.net Server Event Handled by Client

I was wondering if anyone has an easy way to connect javascript event handlers to server side events. I have a long process that involves many steps and would like the client to be constantly updated with new information as a transition to the stage. Will this include some kind of polling mechanism?

+6
javascript jquery events
source share
3 answers

Send an AJAX or JSON request from the client so often requesting status.xml . Then, on the server, when something changes, just quickly write a new line on status.xml just like on the console. You can use setInterval( function, timeBetweenRuns ) in Javascript to do this regularly.

+3
source share

Can I use the update panel for this, perhaps with a timer? this is how i would do it.

Of course, it depends on what you are doing already. I assume you are using forms ...

0
source share

Ajax calling the web service is how I do it.

0
source share

All Articles