Results 1 to 3 of 3

Thread: making something happen in the background

  1. #1

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    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

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724

    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)?

  3. #3
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width