Click here to Skip to main content
11,932,461 members (53,646 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET
I am working with an project.I want to display images and its names in grid.Images are located in the application directory folder 'Images'.And also i want to display image descriptions under each images.These descriptions are stored in the database.Please help.
Posted 20-May-12 6:01am
Mohamed Mitwalli 20-May-12 11:13am
What you did so Far ??
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Mika Wendelius 20-May-12 11:42am
Good links!
losmac 20-May-12 13:10pm
Thank you, Mika ;)
Prasad_Kulkarni 21-May-12 1:19am
My 5!
losmac 21-May-12 1:29am
Thank you ;)
VJ Reddy 21-May-12 8:44am
Good references. 5!
losmac 21-May-12 8:52am
Thank you, VJ ;)
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Set with your actual location of image.
<asp:templatefield headertext="Image" headerstyle-width="25%" itemstyle-height="60px" xmlns:asp="#unknown">
                                                ItemStyle-Width="400px" ItemStyle-HorizontalAlign="left" HeaderStyle-HorizontalAlign="left">
                                                        id="Img" alt="" />
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

first you should clearify how u bind you grid from which : database or image directory:

if you want to bind it with database
then add templat field and add image control with this:

<img src="<%# Eval("ImgPath") %>" />

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.1 | Last Updated 21 May 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100