通过列表视图查看照片 [英] Viewing Photos through List View

查看:87
本文介绍了通过列表视图查看照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们。我的ASP.NET项目的一个文件夹中有超过1500张照片,照片数量每天都在增加。照片的网址和其他功能(例如相册名称,说明,日期等)存储在数据库中。我正在使用列表视图及其内置分页功能,页面大小为4,用于根据客户首选项通过下拉列表查看照片。但随着照片数量的增加,照片的查看速度变慢。我应采取什么方法来克服这个问题?非常急切地等待你的建议......谢谢。

解决方案

你可以使用转发器控制它比listview快得多......

因为转发器只是绑定了它没有任何格式的数据...



检查链接..

http://forums.asp.net/t/1516818.aspx/1 [ ^ ]



在asp.net的Repeater Control中绑定图像 [ ^ ]

Hi friends. I have more than 1500 photos in one folder of my ASP.NET project and the number of photos is increasing daily. The photos'' urls and other features (e.g. album name, description, date etc.) are stored in database. I am using List view with its inbuilt paging feature with page size 4 for client view of the photos according to their preferences through drop down list. However with increase in number of photos, viewing of the photos is getting slower. What approach should I adopt to overcome this problem? Waiting for your advice very eagerly... Thank You.

解决方案

you can use repeater control it is much faster than listview...
because repeater just binds the data it does not have any format...

check links..
http://forums.asp.net/t/1516818.aspx/1[^]

Bind an image in Repeater Control of asp.net[^]


这篇关于通过列表视图查看照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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