making something happen in the background
Hi there,
I have a treeview that populates when the page is loaded. It works fine except that the list of data is so long that the page takes like 15 seconds to load - seems like forever.
Is there a way I can make the page load - and then populate the treeview? I know you can use AJAX but I don't think this the right application for it cause this is when the page is loading not when I click a button or update something on the page.
Thanks
Re: making something happen in the background
Yes, you could use threads, but I think you may find the users will not view a +-15 seconds load time as acceptable.
Is there any way for you to optimise the loading of the data; for example if the data has a deep hierarchy, then use on-demand loading - a perfect solution would be AJAX? Or perhaps manually paging the data via postbacks, or optimising the data query (if from a database)?
Re: making something happen in the background
You can use ajax for when a page is loading, you just have to impliment a bit of java script to do it. I use an ajax container from telerik, but you might be able to make something of it, try this:
http://www.telerik.com/help/aspnet/a...lPageLoad.html