Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Populating ImageBox from dataset

Populating ImageBox from dataset

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Irshad Sulaimani
    wrote on last edited by
    #1

    Hi I've a dataset which retrieves an Image from table. I want to bind it an imagebox. How to do it? Thanks in advance. Irshad

    V 1 Reply Last reply
    0
    • I Irshad Sulaimani

      Hi I've a dataset which retrieves an Image from table. I want to bind it an imagebox. How to do it? Thanks in advance. Irshad

      V Offline
      V Offline
      Vicky Roberts
      wrote on last edited by
      #2

      You can create another apx page and in the page load of this new aspx you can write this. byte[] image = null; image =(byte[])objDV[0]["imgImage1"];// Taking it from dataview/dataset/dtable Response.ContentType = objDV[0]["strImage1ContentType"].ToString(); Response.BinaryWrite(image); Assume this new aspx page name is ImageLoad.aspx In your page where you are taking an Image control, call the method from aspx page. and in code behind you will have protected string GetLogoURL(object objLogo) { return "ImgLoad.aspx" } "Walking on water and developing Software on a specification is easy, if both are frozen..." -- modified at 4:31 Tuesday 19th September, 2006

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups