Treeview在asp.net中加载非常慢 [英] Treeview is loading very slow in asp.net

查看:164
本文介绍了Treeview在asp.net中加载非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用asp.net treeview控件一次绑定来自数据库的500多个节点。所以,加载非常慢。如何克服加载时间。加载所有节点需要30 40秒。请帮帮我。

i am binding more than 500 nodes from data base at a time using asp.net treeview control. so, it is loading very slow. how to overcome from loading time. it takes 30 40 sec to load all nodes. pls help me out.

推荐答案

你已经被告知这里 [ ^ ]。



Don'一遍又一遍地重新提出同样的问题。它往往会让你被忽略。



解决这个问题的方法是不要同时加载带有2000或任何节点的TreeView。使用jQuery和一些服务器端代码仅使用顶级节点填充TreeView,然后在打开父文件夹时按需填充子节点。



关于如何在整个网络上执行此操作,有大量示例。你只需要谷歌ASP.NET populate treeview jquery。
You've already been told here[^].

Don't repost the same question over and over again. It tends to get you ignored.

The way around this is to NOT load the TreeView with 2000, or whatever nodes, all at once. Use jQuery and some server-side code to populate the TreeView with just the top-level nodes, then populate the child nodes "on-demand" when a parent folder is opened.

There are a mountain of examples on how to do this all over the web. You just need but to Google for "ASP.NET populate treeview jquery".


这篇关于Treeview在asp.net中加载非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆