行数据绑定使页面加载缓慢 [英] rowdata bound making slow loading of page

查看:71
本文介绍了行数据绑定使页面加载缓慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

m在gridview上使用RowDataBound事件.并且gridview正在填充大约1000条记录.这里没有分页...使用Internet Explorer加载页面太晚了..我可以有一个更好的优化选项吗????

m using RowDataBound event on gridview. and the gridview is populating with around 1000 records . no pagination here... its getting too late to load the page while using Internet explorer.. can i have a better option to optimize????

推荐答案

如果您的数据检索过程并不慢,那么您需要检查在rowdatabound中执行的操作.您尝试查找在执行c#/vb.net代码时在服务器端运行缓慢,还是在呈现时变得缓慢.如果每行中有很多数据且列数很多,则渲染可能会变慢.在这种情况下,请使用分页.

您可能还会想到UI的延迟加载.意味着一旦用户向下滚动,项目将被加载.您需要为此使用ajax.

谢谢
Mahmud
If your data retrieval process is not slow, then you need to check what operation you do in rowdatabound. You try to find is it slow in server side while executing your c#/vb.net code, or it is becoming slow when it renders. If you have a lot of data in each row with quite a few number of columns, rendering may become slow. In this case please use pagination.

You may also think of lazy loading of the UI. Means items will be loaded once the user scrolls down. You need to use ajax for that.

Thanks
Mahmud


这篇关于行数据绑定使页面加载缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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