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

Discussion in 'ASP .Net Datagrid Control' started by Auto, Apr 27, 2006.

  1. Auto

    Auto Guest

    Auto, Apr 27, 2006
    #1
    1. Advertising

  2. Auto

    Boney.M. Guest

    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
     
    Boney.M., May 26, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Auto
    Replies:
    18
    Views:
    18,786
    the4man
    Apr 30, 2006
  2. Auto
    Replies:
    1
    Views:
    3,232
    the4man
    Apr 27, 2006
  3. Auto
    Replies:
    2
    Views:
    265
  4. André Despont

    How can i display blob into GridView

    André Despont, Dec 21, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    979
    André Despont
    Dec 21, 2006
  5. Auto
    Replies:
    1
    Views:
    188
    vMike
    May 2, 2006
Loading...

Share This Page