0

What is the correct way to implement server callbacks in ASP.net to update a control? I know all about AJAX and async client calls to server but what about this scenario:

You display a treeview (server control) with a list of items to the user. You have a server process running which checks a queue. When an item gets added to the queue it should update the tree control. How? Sounds easy. But seems ridiculously difficult in ASP.net.

1 Answer 1

1

The server cannot (generally) push content out to the client. Web browsers operate in a disconnected environment - in order to simulate "push" behavior you have to have the client periodically poll the server.

The exception to this is if you can use a technology like Silverlight or Flash, which can maintain persistent duplex connections to the server independent of the browser.

As far as I'm aware, most website that appear to dynamically "push" content out to the browser (eg. gmail, facebook chat, etc) are really polling periodically from the client.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.