如何在MVC中使用ASP.NET MVC中的自动反映功能在所有系统上制作网站? [英] How to make website in MVC with auto reflect features in ASP.NET MVC on all system ?

查看:102
本文介绍了如何在MVC中使用ASP.NET MVC中的自动反映功能在所有系统上制作网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



如何在MVC网站中实现自动反映功能?比如说我在MVC中有一个网站,在2个PC中我打开了可拖动内容的同一页面。因此,如果我拖动一个元素并放在其他部分,它应该反映在所有其他PC上,如果在该PC上打开相同页面而不更改其他系统(无刷新)?



我尝试了什么:



我在互联网上尝试了很多链接但没有获得在MVC5上实现的确切解决方案。

Hello,

How to implement auto reflect feature in MVC website? Say for example i have one website in MVC and in 2 pc i have opened same page with dragable content. So if i drag one element and drop on other section it should be reflected on all other pc if same page is opened on that pc without any changes to other system(No refresh)?

What I have tried:

I have tried lots of links on internet but not getting exact solution to implement on MVC5.

推荐答案

这绝不是一件小事,它将涉及大量编码。对于核心功能,即共享通信,请查看像Signalr这样的框架。这将允许每个客户端与服务器进行双向通信,以便一个客户端执行传输到服务器的操作,然后服务器按下指令以匹配每个订阅客户端上的操作。
This is by no means a trivial thing, it will involve a lot of coding. For the core functionality, ie the shared communications, look into a framework like Signalr. That will allow each client to have two-way comms with the server, so as one client does something that is transmitted to the server, and the server then pushes the instructions to match the action on each subscribed client.


这篇关于如何在MVC中使用ASP.NET MVC中的自动反映功能在所有系统上制作网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆