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 Drop Down Using XMLDatasource:

Populating Drop Down Using XMLDatasource:

Scheduled Pinned Locked Moved ASP.NET
design
4 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.
  • S Offline
    S Offline
    Shahzad Aslam
    wrote on last edited by
    #1

    Hi I m trying to populate dropdown list using XMLDatasource control. code for DDL: Code for XMLDataSource: it does not displaying data, it is just showing system.web.UI.WebControls.XMLDatasource Shahzad Aslam Software Engineer

    B 1 Reply Last reply
    0
    • S Shahzad Aslam

      Hi I m trying to populate dropdown list using XMLDatasource control. code for DDL: Code for XMLDataSource: it does not displaying data, it is just showing system.web.UI.WebControls.XMLDatasource Shahzad Aslam Software Engineer

      B Offline
      B Offline
      But_Im_a_Lady
      wrote on last edited by
      #2

      See my example which works fine... The xml file: HTH Janet

      S 1 Reply Last reply
      0
      • B But_Im_a_Lady

        See my example which works fine... The xml file: HTH Janet

        S Offline
        S Offline
        Shahzad Aslam
        wrote on last edited by
        #3

        the following XML file i m using: - - en aa Afar - en ab Abkhazian if i give name in the DataTextField or DataValueField it indicate following error: "DataBinding: 'System.Web.UI.WebControls.XmlDataSourceNodeDescriptor' does not contain a property with the name 'name'" Any Idea? Shahzad Aslam Software Engineer

        B 1 Reply Last reply
        0
        • S Shahzad Aslam

          the following XML file i m using: - - en aa Afar - en ab Abkhazian if i give name in the DataTextField or DataValueField it indicate following error: "DataBinding: 'System.Web.UI.WebControls.XmlDataSourceNodeDescriptor' does not contain a property with the name 'name'" Any Idea? Shahzad Aslam Software Engineer

          B Offline
          B Offline
          But_Im_a_Lady
          wrote on last edited by
          #4

          Your xml file is a different format to the sample one i sent you. See http://www.topxml.com/code/default.asp?p=3&id=v20050220140055&ms=20&l=C&sw=categ[^] for similar example to what you need Janet

          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