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. DropDownList and XML file

DropDownList and XML file

Scheduled Pinned Locked Moved ASP.NET
xmltutorialquestion
3 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
    ChrisWFL
    wrote on last edited by
    #1

    Has anyone figured out how to attach an XML file as a datasource for a DropDownList control? For instance, a list of 50 states and state codes to populate a state dropdownlist in a shopping cart.

    L 1 Reply Last reply
    0
    • C ChrisWFL

      Has anyone figured out how to attach an XML file as a datasource for a DropDownList control? For instance, a list of 50 states and state codes to populate a state dropdownlist in a shopping cart.

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      ChrisWFL wrote: Has anyone figured out how to attach an XML file as a datasource for a DropDownList control? For instance, a list of 50 states and state codes to populate a state dropdownlist in a shopping cart. It all depends what your XML looks like , but you can just ReadXml() on a clean dataset and add the Table as the datasource. I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02

      C 1 Reply Last reply
      0
      • L leppie

        ChrisWFL wrote: Has anyone figured out how to attach an XML file as a datasource for a DropDownList control? For instance, a list of 50 states and state codes to populate a state dropdownlist in a shopping cart. It all depends what your XML looks like , but you can just ReadXml() on a clean dataset and add the Table as the datasource. I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02

        C Offline
        C Offline
        ChrisWFL
        wrote on last edited by
        #3

        Thanks, that worked. I was trying not to need a DataSet, but I ended up needing one for another reason anyway. Also, I was trying to use the XML services and get a table back instead of the (proper) other way around of creating a table by reading the XML.

        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