Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
HI,
I am working with an asp.net 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
Comments
Mohamed Mitwalli at 20-May-12 11:13am
   
What you did so Far ??
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

Solution 2

Set http://www.website.com/Upload/Image/ 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">
                                                <itemtemplate>
                                                    ">
                                                        id="Img" alt="" />
                                                </itemtemplate>
                                            </asp:templatefield>
  Permalink  
Rate this: bad
good
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") %>" />
  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 21 May 2012
Copyright © CodeProject, 1999-2014
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