Is it possible to call async Page_Load in asp.net 4.5?

拜拜、爱过 提交于 2019-12-07 17:50:38

问题


I wish to know whether it possible to call async Page_Load in asp.net 4.5 like async controllers in ASP.Net MVC 4. If it is possible, how do we use async events in asp.net?


回答1:


You could use the PageAsyncTask

Pretty simple to use. You basically create your async task and then register it with the page and execute it. The link above has a good example.



来源:https://stackoverflow.com/questions/8242375/is-it-possible-to-call-async-page-load-in-asp-net-4-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!