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. create child dropdownlist

create child dropdownlist

Scheduled Pinned Locked Moved ASP.NET
tutorialdatabasecomhelp
4 Posts 4 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.
  • M Offline
    M Offline
    Miss Maheshwari
    wrote on last edited by
    #1

    hello i m creating a dropdownlist binded from database... now i m having a link to Add More to add more dropdownlist these dropdownlist are having their option from database...i successfully done that but on change event of dropdownlist i want to create child dropdownlist binded from database... u can see the example here[^] please tell me how to solve this problem...the first dropdownlist displays category and the second one subcategory....

    S 1 Reply Last reply
    0
    • M Miss Maheshwari

      hello i m creating a dropdownlist binded from database... now i m having a link to Add More to add more dropdownlist these dropdownlist are having their option from database...i successfully done that but on change event of dropdownlist i want to create child dropdownlist binded from database... u can see the example here[^] please tell me how to solve this problem...the first dropdownlist displays category and the second one subcategory....

      S Offline
      S Offline
      SunithaNallana
      wrote on last edited by
      #2

      Hi, u can do this way Bind the child DropDown list in the Selectedindex changing event of the parent DropDown list Try and let me know the result happy coding

      K F 2 Replies Last reply
      0
      • S SunithaNallana

        Hi, u can do this way Bind the child DropDown list in the Selectedindex changing event of the parent DropDown list Try and let me know the result happy coding

        K Offline
        K Offline
        Kaushal Arora
        wrote on last edited by
        #3

        The reply given by Sunitha is right. But with this do take care that you write your code in If(!Page.IsPostBack) while filling the first dropdown on page load.

        1 Reply Last reply
        0
        • S SunithaNallana

          Hi, u can do this way Bind the child DropDown list in the Selectedindex changing event of the parent DropDown list Try and let me know the result happy coding

          F Offline
          F Offline
          Frauke
          wrote on last edited by
          #4

          I agree, Sunitha is spot on. If you're looking for more detailed instructions, there is a great tutorial on this subject at http://www.asp.net/learn/data-access/tutorial-08-cs.aspx[^]

          Frauke Nonnenmacher Creative Cats

          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