[2005] Adding photos to gridView
can someone help me to add photos to a gridview?
First of all I have a field in my sql database called ( photo ) of type (varchar(50)
I want to place my photos in a folder and specify the name of the photo in the database (photo) field.
How can I make the gridview display the photo ?
Please help , I've spent 2 hours trying to make it work
Re: [2005] Adding photos to gridView
what code do you have so far for the gridview.... by code i'm referring to the markup
Re: [2005] Adding photos to gridView
Give your gridview a template column. In the template column, place an image control. In the RowDataBound event, get a reference to the image control and pass to it the path available to you from your dataset.
Is this pushing you in the right direction?