分页问题 [英] Paging Problem

查看:82
本文介绍了分页问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将文件夹中的图像显示到网站中,但打开时间太长.我也减小了尺寸,但无法快速打开.我不使用数据库,所以分页如果可以,则可以这样做,然后告诉解决方案或其他解决方案.给我发电子邮件saurabh.junankar@gmail.com

I am displaying the images from folder into the website but it''s take a too much time to open.I reduces it''s size also but unable to open quickly.I don''t use the database so paging is possible for it if yes then pls tell the solution or any other solution on it. email me saurabh.junankar@gmail.com

推荐答案

为什么需要数据库进行分页?

使用DataPager控件启用分页.

对于图像,浏览器将对响应中的每个图像调用新请求.因此,图像将比实际响应慢.这是在客户端中加载图像的默认行为.

您可以对图像进行GZip/Deflate压缩,还可以放置客户端缓存标头以使其更快.:cool:
Why do you require Database for Paging ??

Use DataPager control to enable paging.

In case of images, the browser invokes new requests to each image in the response. So images will come slower than the actual response. This is the default behaviour of loading images in the client.

You might go for GZip/Deflate compression for the images and also put client cache headers to make it faster.:cool:


这篇关于分页问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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