SQL Image In a DataGrid

  • Thread starter Thread starter Nate K
  • Start date Start date
N

Nate K

I want to take an image stored in a SQL server and display it in a
Datagrid. I think this can be done by registering an event in the
binding that when it receives binary image data is sends it to an image
tag on the Datagrid template. Any other ideas? Code that does it?

Thanks, Nate
 
The correct way is to make a separate asp.net page that will accept an image
id as a parameter and stream down the image in the response. This topic has
been discussed a lot. Google newsgroups on something like "asp.net image
download".

Eliyahu
 
I agree.
I recently built such a page and it works fine.

The idea is that in your grid you will refer to the "image generating page"
as the source of each image.
This way when your grid page is renedered the image will be rendeder in the
right place for each row.
 
Back
Top