Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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#?
Posted
Updated 15-May-12 22:12pm
v2

1 solution

Bind your ListView control to the database results and use a databinding expression

<ItemTemplate>
<img src='<%# Eval('url') %>" />
</ItemTemplate>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900