简体   繁体   中英

Async User Control load in Page_Load event

I have a page that consist of 4 user control that each one load in a tab. one of this user controls show bing map based on our data to users. The problem is that the Page_Load of our page is dependent to internet connection of users. How can we load this user control asynchronously?

While it's not clear from your post the nature of the long running task that you think can benefit from changing it to asynchronous, I think you'll find good clues to "asynchronous UserControls" in this SO question

Also, the article Using Asynchronous Methods in ASP.NET 4.5 is an "official" tutorial that shows how to spin asynchronous processing at a more granular level.

I am curious to see some code for my own selfish learning goals, if you can share.

Could you clarify how Page_Load is dependent on Internet Connection?

Please check following link, which shows how to load user control asynchronously:

Load User Control Asynchronously

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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