简体   繁体   English

具有进度可视化的MVC 4中的异步操作

[英]Async operations in MVC 4 with progress visualization

I'm using DevExpress Controls in my MVC 4 application. 我在MVC 4应用程序中使用DevExpress控件。

I now want to use their PopupControl to display the progress of an asynchronous operation (mostly FTP / Http calls, that could take quite some time). 我现在想使用其PopupControl来显示异步操作的进度(主要是FTP / Http调用,这可能要花一些时间)。

For this question, any progressbar (not neccessarily within a PopupControl) will do just fine. 对于这个问题,任何进度条(不一定在PopupControl中)都可以。

As I'm aware, in MVC 3 you've used AsyncControllers for that, but to my understanding they're deprecated with MVC 4 (.NET 4.5). 据我所知,在MVC 3中,您已经为此使用了AsyncControllers,但据我所知,它们在MVC 4(.NET 4.5)中已弃用。 Is there any tutorial out there on how to accomplish my task? 有没有关于如何完成任务的教程?

You can use standard techniques to get process of the async operations. 您可以使用标准技术来获取异步操作的过程。 Once results are available, display them with a corrsponding HTML element (PopupControl, ProgressBar, etc.). 一旦结果可用,就用相应的HTML元素(PopupControl,ProgressBar等)显示它们。

Check the How to display progress information about server-side callback processing sample in the DevExpress forum. 在DevExpress论坛中查看如何显示有关服务器端回调处理的进度信息示例。

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

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