如何在ASP.net中使用Application.DoEvents() [英] how to use Application.DoEvents() In ASP.net

查看:478
本文介绍了如何在ASP.net中使用Application.DoEvents()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在ASP.net中使用Application.DoEvents()

我们在WinForms中使用Application.DoEvents()等待代码

如何在ASP.Net中使用它

how to use Application.DoEvents() In ASP.net

We Use Application.DoEvents()In WinForms To Wait Code

How To Use It In ASP.Net

推荐答案

您不用,因为它只能在Windows应用程序中用于强制处理messageloop.在Windows应用程序中执行此操作被视为是一种不好的做法,但在asp.net页中实际上没有任何用处.您可能希望在处理繁忙时向用户返回一些内容以显示.只需搜索类似内容,然后查看示例即可.

祝你好运!
You don''t, because it can only be used in windows applications to force processing of the messageloop. It is seen as a bad practice to do this in windows applications but would really have no use in an asp.net page. You probably want to return something to the user to show while processing is busy. Just search on something like that and have a look at the examples.

Good luck!


这篇关于如何在ASP.net中使用Application.DoEvents()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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