Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 2nd, 2005, 01:58 PM
Authorized User
 
Join Date: Aug 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Default Treeview performance

I am dynamically loading a tree from the SQL database, using datasets. It loads fine. But, for some of the data, there are about 1000 children. It takes very long to load the treenodes( about 90 seconds). Also, i have provided a search capability to search in the tree. For, large trees, it gave me an error:-

Action Cancelled

On other machine, it gave me more useful error message regarding exceeding some maximum length. Then, I added following code to the web.config file for increasing the size:-

<httpRuntime
    maxRequestLength="8000"
/>

Now, I don't get the error, but it is very-very slow. I just cannot give it to the user. It is so frustrating to sit in front of the machine and give it about 2 minutes after every click.
What can i do to reduce the wait time. I was using one session variable and i removed that also. Please help! It is very urgent, as my deadline is this week. The problem is only for tree with lots of children.
Thanks a lot.

 
Old February 3rd, 2005, 01:22 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

The only option I see is to reduce the amount of data being returned.
 
Old February 3rd, 2005, 12:43 PM
Authorized User
 
Join Date: Aug 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply, but how can i do that , I need to show all the children at one time. I wish I could do it with a list kind of view and load first few records, but they need to see all the children in one go and if they expand further, they have more children under each child.


 
Old February 3rd, 2005, 02:52 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Is this a 3rd party control you are using?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Performance prasanta2expert SQL Server 2000 6 December 15th, 2006 10:38 PM
Performance prasanta2expert ASP.NET 1.0 and 1.1 Basics 0 December 4th, 2006 04:24 AM
performance issue keyvanjan Classic ASP Basics 0 May 23rd, 2006 10:57 AM
what is the best to do, better performance alyeng2000 ASP.NET 1.0 and 1.1 Basics 1 December 13th, 2003 07:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.