Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello,

 

Is there an accepted way to 'push' data to a client browser? In other words, to have the client recieve some data and update its' display without refreshing the page?

 

I have a datagrid that I want to display some live data. I also have a webservice that exposes the data in question. Currently the client browser consumes that webservice once per second and updates its' datagrid. but this strikes me as horribly inefficient.

 

I was just wondering if there's a standard practice for going about such a thing. Any help greatly appreciated.

"It may be roundly asserted that human ingenuity cannot concoct a cipher which human ingenuity cannot resolve."

 

- Edgar Allan Poe, 1841

 

I long to accomplish great and noble tasks, but it is my chief duty to accomplish humble tasks as though they were great and noble. The world is moved along, not only by the mighty shoves of its heroes, but also by the aggregate of the tiny pushes of each honest worker.

 

- Helen Keller

Posted

Server's don't push data to the client. Clients pull data from the server. The server will NEVER be able to directly push information to the client...this isn't the nature of HTTP; it is static.

 

Your best bet is to have RPC poll the server from the client and if there is a change the call should return the changes....see AJAX or ATLAS on Google. Only poll as often as you think data will change. If data won't change under a 5 minute window, then don't poll less than every 5 minutes.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...