问题描述
我正在使用文件上载控件,该控件将图像上载到文件夹中,并且还将图像路径(Image Url)插入数据库表中.
为了检索存储在文件夹中的图像,在ListView中,我正在使用来自可压片数据库的图像URL,也使用了datapager控件.
问题是,当我单击datapager控件的下一步"按钮时,将显示下一个图像,但是此后,当我单击上一个"按钮时,图像不显示,则显示损坏的图像控件.
我正在使用ListView控件的GroupItemCount ="4"和Datapager控件的pageSize ="12".
如何使用C#在Asp.Net中解决此问题?
I am using a file upload control that upload the Image in a folder and also insert the image path(Image Url) in a database table.
To retrieve Image Which are stored in the folder, in a ListView I am using the Image Url from database tabletable also I use a datapager control.
The problem is when I click Next Button of the datapager control the next images shows but after that when I click Previous Button the Images do not show that is it shows broken Image Control.
I am using GroupItemCount="4" of the ListView Control and pageSize="12" of the Datapager Control.
How Can I overcome from this Problem in Asp.Net with C#?
推荐答案
这篇关于从文件夹中获取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!