简体   繁体   English

asp.net异步执行任务并更新UI

[英]asp.net asynchronously execute the tasks and update UI

I am developing an asp.net application which will discover UDP clients available on LAN. 我正在开发一个asp.net应用程序,它将发现LAN上可用的UDP客户端。 I need to update UI control(where the discovered devices will be displayed) and progress bar at the bottom. 我需要更新UI控件(将在其中显示发现的设备的位置)和底部的进度条。

The UI control should be updated as the the devices are discovered. 发现设备后,应更新UI控件。

I need to know which method is the best either using Html5 websockets or asp.net asynchronous pages? 我需要知道使用Html5 websockets或asp.net异步页面最好的方法吗? if using asp.net synchronous pages ho can i update UI as i discover nodes 如果使用asp.net同步页面,我可以在发现节点时更新UI

Regards, Abdul khaliq 问候,阿卜杜勒·哈利克

Will the discovery code be running serverside or client side? 发现代码将在服务器端还是客户端运行?

If serverside you coul use setIntervall or setTimeout to repeatedly call the server for an update on the discovery but that requires the dicovery process to run seperate from the webserver. 如果在服务器端,您可以使用setIntervall或setTimeout重复调用服务器以进行发现更新,但这需要使发现过程与Web服务器分开运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM