display image in gridview

  • Thread starter Thread starter Stephanie
  • Start date Start date
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
 
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
 
Back
Top