Notifying Client Browser from Server in ASP.NET

S

satyamguha2006

Is there any way to notify the Client Browser when something changes
at the Server?
 
B

bruce barker

there are a couple ways:

1) simple - poll the server with ajax
2) using iframes, and server push (really client pull). here you turn
off buffering and keep sending javascript commands and a flush. to keep
from burning up too much memory, you need to close and reopen the request.
3) use a java applet or active/x to hold a connection open and fire an
event.


-- bruce (sqlwork.com)
 
C

Chris Fulstow

Nope - sorry.

Like Bruce suggested, your best bet is to use AJAX. You can
periodically send a background web request, without refreshing the
main page, to get data from the server - maybe by calling a web
service or some other page.

This is how GMail and other web-based email clients work, they poll
the server every few seconds to see if new mail is available.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top