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. raising an event for a particular dropdownlist when multiple dropdownlists are being added to a webform dynamically.

raising an event for a particular dropdownlist when multiple dropdownlists are being added to a webform dynamically.

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

    Since I seemed to have stumped the experts on here as to how to go about creating a "chain" of dropdownlists, I was hoping someone could help me with a smaller issue. How would I go about :confused:raising an event for a particular dropdownlist when multiple dropdownlists are being added to a webform dynamically.:confused: I would like to identify the event using Ajax.

    C 1 Reply Last reply
    0
    • H honeyss

      Since I seemed to have stumped the experts on here as to how to go about creating a "chain" of dropdownlists, I was hoping someone could help me with a smaller issue. How would I go about :confused:raising an event for a particular dropdownlist when multiple dropdownlists are being added to a webform dynamically.:confused: I would like to identify the event using Ajax.

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

      If you're using AJAX, it's trivial. Write your javascript code to pass through an Id which comes from each drop list, so, for example, when you create each one dynamically, it's selection changed event will call javascript which makes the AJAX call, stuff a variable in there to identify the drop down list in question. What do you mean by 'chain' ??? Of course, these dynamic controls will not have viewstate unless you handle them right, but if it's all AJAX, it's all client side, which is simpler.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      H 1 Reply Last reply
      0
      • C Christian Graus

        If you're using AJAX, it's trivial. Write your javascript code to pass through an Id which comes from each drop list, so, for example, when you create each one dynamically, it's selection changed event will call javascript which makes the AJAX call, stuff a variable in there to identify the drop down list in question. What do you mean by 'chain' ??? Of course, these dynamic controls will not have viewstate unless you handle them right, but if it's all AJAX, it's all client side, which is simpler.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        H Offline
        H Offline
        honeyss
        wrote on last edited by
        #3

        I need to identify that using ajax.chain in the sense multiple dropdownlists.plz help me

        C 1 Reply Last reply
        0
        • H honeyss

          I need to identify that using ajax.chain in the sense multiple dropdownlists.plz help me

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

          I answered this, not sure what else to say.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          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