user173446
user173446

Reputation: 3969

asp / asp mvc - how to trigger automatic client refresh

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 ?

Upvotes: 1

Views: 1698

Answers (2)

hazzik
hazzik

Reputation: 13344

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

Upvotes: 1

Kris van der Mast
Kris van der Mast

Reputation: 16613

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

Upvotes: 1

Related Questions