display image in gridview

S

Stephanie

I would like to store a file system reference to an image (and not a BLOB
within SQL Server) in my db. I wuld then like to display that image in a
gridview. I see a lot of information about the latter but not the former.

Anyone have a reference that they can point me to? Thanks

S
 
B

Ben Amada

Stephanie said:
I would like to store a file system reference to an image (and not a
BLOB within SQL Server) in my db. I wuld then like to display that image
in a gridview. I see a lot of information about the latter but not the
former.

Anyone have a reference that they can point me to? Thanks

You can use an ImageField column in the GridView. The DataImageUrlField
property can be set to the absolute or relative URL of the image.

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.imagefield.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top