datagrid question

M

MS Newsgroups

Hi,

If i store a image in a sql 2000 database binary using the image data type,
Is it in someway possible to use a bound datagrid to have this image
displayed in the grid ?

Regards

Niclas
 
H

Hermit Dave

well you need to write an aspx page or a custom httphandler to fetch the
byte array from database and write that byte array using
Response.BinaryWrite to the output stream
yes you can bind display it using ItemTemplate, with <img or image control
embedded which calls your aspx or your custom handler with appropriate
parameters

http://aspalliance.com/articleViewer.aspx?aId=141&pId=-1

this article sort of shows you what i was going on about.
 

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