V
V
Valery Abakumov2014-07-08 16:45:02
JavaScript
Valery Abakumov, 2014-07-08 16:45:02

How to notify the client about changes on the server side in ASP.NET MVC?

Good afternoon!

There are users with their personal objects. For example, the user opened 2 tabs:
1) on the first tab, a list of his personal objects (for example, a list of user tasks)
2) on the second tab, he selected some task, changed its name and clicked "Save changes"

Please tell me how you can in ASP.NET MVC (in particular, 4) make it so that when you save changes (change the name of the task) on the second tab, the list of all tasks on the first tab is automatically (via Ajax) updated ?

Those. a kind of implementation of the event model and subscriptions to them. Roughly speaking, the list of all user tasks from the first tab is "subscribed" to the event of changing the name of any task (as in C# desktop applications, only between the client and the server).

I will be grateful for any tip, any articles and tutorials.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Kheben, 2014-07-08
@Valeriy1991

This is solved through Longpoll and local storage.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question