SQL Image In a DataGrid

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
 
E

Eliyahu Goldin

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
 
J

Joe Fallon

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.
 

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

Top