如何在asp.net中进行异步处理? [英] how to do asynchronous process in asp.net?

查看:92
本文介绍了如何在asp.net中进行异步处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

告诉我在asp.net中执行异步处理的步骤。假设我正在点击其他网址,它会加载几秒钟,那时我需要进度条显示请稍候消息,直到我从该网页获取数据。请给我解决这个问题的方法。

Hi sir,
Tell me the steps to do asynchronous process in asp.net. Suppose if i am hitting other url it gets loading for few seconds, that time i need progress bar to display "Please wait" message until i am getting the data from that hitted url. Kindly give me the solution for this problem.

推荐答案

尝试使用aync-await ...

这里是介绍http://www.hanselman.com/blog/TheMagicOfUsingAsynchronousMethodsInASPNET45PlusAnImportantGotcha.aspx [ ^ ]



和此链接http://msdn.microsoft.com/en-us/magazine/jj991977.aspx [ ^ ]
try using aync-await...
here is the intro http://www.hanselman.com/blog/TheMagicOfUsingAsynchronousMethodsInASPNET45PlusAnImportantGotcha.aspx[^]

and this link http://msdn.microsoft.com/en-us/magazine/jj991977.aspx[^]


这篇关于如何在asp.net中进行异步处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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