Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > How to Display an image, from a DB, into the Gridview (ASP.NET 2.0)

Reply
Thread Tools

How to Display an image, from a DB, into the Gridview (ASP.NET 2.0)

 
 
Auto
Guest
Posts: n/a
 
      04-27-2006
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/de...idViewEx06.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.


 
Reply With Quote
 
 
 
 
Boney.M.
Guest
Posts: n/a
 
      05-26-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
How to Display an image, from a DB, into the Gridview (ASP.NET 2.0) Auto ASP .Net 18 04-30-2006 04:38 PM
How to Display an image, from a DB, into the Gridview (ASP.NET 2.0) Auto ASP .Net Building Controls 2 04-30-2006 10:42 AM
How to Display an image, from a DB, into the Gridview (ASP.NET 2.0) Auto ASP .Net 1 04-27-2006 08:38 AM



Advertisments