Hello,
I would like to know how do display an image into a Gridview (ASP.NET 2.0)
taken directly from a DataBase, NOT using an URL, like described in this
article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/Gri
dViewEx06.asp
I have NO URL, i have the binary image inside the DB, like the field "Photo"
in the table "Employees" of the "NWIND.MDB" DataBase.
Any hints?
Thanks,
Auto.
Boney.M. - 26 May 2006 14:01 GMT
Create a Template column in datagrid and do the following
<Item template>
<img src='<%#DataBinder.Eval(Container,"DataItem.Path")%>' >
</item template>
It will bind the datagrid with image.
try this