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. Populate ListBox using XML?

Populate ListBox using XML?

Scheduled Pinned Locked Moved ASP.NET
questionxmltutorial
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.
  • C Offline
    C Offline
    chand10
    wrote on last edited by
    #1

    Hi I'm trying an application in which I have a DropDownList and a ListBox. At the time of Page load the DropDownList will be populated with the names of USA states from XML and with a name selection in the DropDownList the ListBox should populate with the counties of USA. I am successful in populating the DropDownList but I'm unable to populate ListBox. My XML is something like this..... Autauga Baldwin Barbour Aleutians East Aleutians West Anchorage Arkansas Ashley Baxter What is the path for getting all the county names for each State selection. Suggest me an example. I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu

    E 1 Reply Last reply
    0
    • C chand10

      Hi I'm trying an application in which I have a DropDownList and a ListBox. At the time of Page load the DropDownList will be populated with the names of USA states from XML and with a name selection in the DropDownList the ListBox should populate with the counties of USA. I am successful in populating the DropDownList but I'm unable to populate ListBox. My XML is something like this..... Autauga Baldwin Barbour Aleutians East Aleutians West Anchorage Arkansas Ashley Baxter What is the path for getting all the county names for each State selection. Suggest me an example. I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu

      E Offline
      E Offline
      Ed Poore
      wrote on last edited by
      #2

      chand10 wrote:

      What is the path

      XPath I presume? /USA/STATE/@name


      My Blog

      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