I have a webpage that reads data from an external source. It can take awhile to retrieve the data.
I was wondering if someone could give me an idea on the best way to have this happen in the background. I would like the page to come up and display ‘Processing’ (or somthing like that) in the panel where the data will eventually be displayed.
I thought of the BackgroundWorker component, or maybe an AsyncPostBackTrigger… not sure if these will even solve the problem to my satisfaction.
So… does anyone have any ideas as to a good approach to the problem?
Thanks for the advice!!
I think what you’re looking for is Ajax. You want to make the request from the client side in a way that will allow the user to continue viewing other content until that loads.
.NET has a number of different techniques for support AJAX requests – ranging from
UpdatePanelcontrols to Async Operations. Which technique you use depends on the details of exactly what you’re trying to do.You could also just use a library like jQuery to make async requests for content to a separate page or service in your web application.