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. how to bind value to select element using Ajax

how to bind value to select element using Ajax

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

    Hi all, In my web page, i am retrieving data for select element using Ajax. My webservice return me a collection of values as Ilist. How to bind that collection to the select control, that DTO class has ID(bind to the value) and Name(bind to text). Please suggest me or give me some like to learn how to do this. Thank you

    Know is Drop, Unknown is Ocean

    C 1 Reply Last reply
    0
    • E Exelioindia

      Hi all, In my web page, i am retrieving data for select element using Ajax. My webservice return me a collection of values as Ilist. How to bind that collection to the select control, that DTO class has ID(bind to the value) and Name(bind to text). Please suggest me or give me some like to learn how to do this. Thank you

      Know is Drop, Unknown is Ocean

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Any IEnumerable is a valid data source. Are you using AJAX, or just using the MS AJAX library ? What issue do you have that's specific to AJAX ? If you're writing AJAX, you need to send your data as XML

      Christian Graus Driven to the arms of OSX by Vista.

      E 1 Reply Last reply
      0
      • C Christian Graus

        Any IEnumerable is a valid data source. Are you using AJAX, or just using the MS AJAX library ? What issue do you have that's specific to AJAX ? If you're writing AJAX, you need to send your data as XML

        Christian Graus Driven to the arms of OSX by Vista.

        E Offline
        E Offline
        Exelioindia
        wrote on last edited by
        #3

        Hi, Thank you very much for your suggestion. I am using AJAX, please give me a link to learn this binding.

        Know is Drop, Unknown is Ocean

        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