Tutorial :asp / asp mvc - how to trigger automatic client refresh



Question:

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 ?


Solution:1

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


Solution:2

I advise you to use some push-notification sistem for do client side refresesh. So with push notification your client will update only if erver has update data.

You can use SignalR framework


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »