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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. XML / XSL
  4. Easy JPG question!

Easy JPG question!

Scheduled Pinned Locked Moved XML / XSL
csharpdatabasexmlhelpquestion
3 Posts 2 Posters 2 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.
  • S Offline
    S Offline
    SpeBeeTo
    wrote on last edited by
    #1

    Hi everyone, I first would like to warn you that I'm a newbie programmer. So if I have left out important code for you guys to determine what I'm doing wrong, let me know. :) I am making a PocketPC application using C# and an XML file as a database. I would like to display the corresponding JPG image in a PictureBox, or somewhere on the main page. A sample of my xml file. The bolded line is the picture reference. <fragenkatalog> <ca_id>4</ca_id> <ca_titel>head ap</ca_titel> **<ca_bildurl1>kopf_ap.jpg</ca_bildurl1>** <ca_disabled>0</ca_disabled> <ca_alter>999</ca_alter> <ca_sex>n</ca_sex> </fragenkatalog> This is what I have, which doesn't work. //Bind image to picturebox ca_bildurl.DataBindings.Add("Image",dt,"ca_bildurl1"); The ID is chosen from a ListBox, and the corresponding data is displayed on the screen. Any help would be appreciated! Thanks! M. -- modified at 21:09 Friday 30th December, 2005

    M 1 Reply Last reply
    0
    • S SpeBeeTo

      Hi everyone, I first would like to warn you that I'm a newbie programmer. So if I have left out important code for you guys to determine what I'm doing wrong, let me know. :) I am making a PocketPC application using C# and an XML file as a database. I would like to display the corresponding JPG image in a PictureBox, or somewhere on the main page. A sample of my xml file. The bolded line is the picture reference. <fragenkatalog> <ca_id>4</ca_id> <ca_titel>head ap</ca_titel> **<ca_bildurl1>kopf_ap.jpg</ca_bildurl1>** <ca_disabled>0</ca_disabled> <ca_alter>999</ca_alter> <ca_sex>n</ca_sex> </fragenkatalog> This is what I have, which doesn't work. //Bind image to picturebox ca_bildurl.DataBindings.Add("Image",dt,"ca_bildurl1"); The ID is chosen from a ListBox, and the corresponding data is displayed on the screen. Any help would be appreciated! Thanks! M. -- modified at 21:09 Friday 30th December, 2005

      M Offline
      M Offline
      Michael Flanakin
      wrote on last edited by
      #2

      Please repost your XML with < and > instead of the < and > symbols. Michael Flanakin Web Log

      S 1 Reply Last reply
      0
      • M Michael Flanakin

        Please repost your XML with < and > instead of the < and > symbols. Michael Flanakin Web Log

        S Offline
        S Offline
        SpeBeeTo
        wrote on last edited by
        #3

        Ok, it's changed. :) Sorry about that.

        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