views:

27

answers:

2

There are 3 clients that looks at same data instance, one of them edits data and submits on server, what are the mechanisms to make the other two clients instantly see the updated data ? I am thinking of some AJAX poll from time to time that will force page reload if there are changes or some page expire , is there anything else ?

A: 

You can simple use Timer to AJAX update UpdatePanel with 1000ms interval.

Svisstack
Never use updatepanel in asp.net mvc (I wouldn't use it in webforms ether for that matter).
Mattias Jakobsson
I would advise against using the updatepanel. It's a too heavy control to be used in any application, espcially for such frequent updates. Updatepanels still send back and forth the whole viewstate (in webforms). It's mostly better to use javascript/jQuery solely for enhanced performance and less overhead.
XIII
+1  A: 

You can make use of the jQuery ajax stack. This already is included when you make an ASP.NET MVC application in Visual Studio.

XIII