1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

My question is......

Discussion in 'C#' started by pnkyverma, Jun 15, 2007.

  1. #1
    How can fetch image in database and show the all images in grid view through paging in ASP.Net language.Plz solve my question.
    pnkyverma, Jun 15, 2007 IP
  2. ccoonen

    ccoonen Well-Known Member

    Likes Received:
    Best Answers:
    Trophy Points:
    well, paging in ASP.NET's Gridview is automatically inherited... How to include Image in a cell from the DB? Just have an aspx page spoof an image. Then use the Eval when rendering your column to display img as another aspx page. That page should hit the db, set the response.contenttype = "image/jpg" or whatever it is, then do response.writebinary(yourDBBytes()). so - you can pass in an ID to the aspx page.

    thjerefore if you hit image.aspx?id=34 it would get the image data as byte() from the db where id = 34, and literally write out the image data. Then your datagrid can use this to push out "spoofed" images :)
    ccoonen, Jun 15, 2007 IP