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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. runtime drop down boxes

runtime drop down boxes

Scheduled Pinned Locked Moved ASP.NET
javascriptcomdiscussionannouncement
5 Posts 3 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
    mark_me
    wrote on last edited by
    #1

    Hi, Currently, i have one language dropdownlistbox which contains upto 40 languages. I want to add functionality for adding upto 5 languages. I want it similar to languages feature on orkut.com (or maybe facebook), where u choose one language, click a btn and another drop down box with add btn appears, again on click another dropdown and add btn appears (this happens for 10-12 languages). I am confused regarding the implementation in the sense that whether this functionality requires ajax update panel or can it be done using javascript. Is there anyway in which javascript can take data of one ddl and add it to another , so that if i add 5 ddls and then appear and disappear the boxes using javascript and transferring dropdown data from first dropdown box, I can do the appear/disappear part of it but i dont want to assign 40 languages to all 5 controls at same time, i want one to be visible and maybe on a click another appears with the 40 languages from first ddl... Thanks for your opinions and responses

    A 4 2 Replies Last reply
    0
    • M mark_me

      Hi, Currently, i have one language dropdownlistbox which contains upto 40 languages. I want to add functionality for adding upto 5 languages. I want it similar to languages feature on orkut.com (or maybe facebook), where u choose one language, click a btn and another drop down box with add btn appears, again on click another dropdown and add btn appears (this happens for 10-12 languages). I am confused regarding the implementation in the sense that whether this functionality requires ajax update panel or can it be done using javascript. Is there anyway in which javascript can take data of one ddl and add it to another , so that if i add 5 ddls and then appear and disappear the boxes using javascript and transferring dropdown data from first dropdown box, I can do the appear/disappear part of it but i dont want to assign 40 languages to all 5 controls at same time, i want one to be visible and maybe on a click another appears with the 40 languages from first ddl... Thanks for your opinions and responses

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Ajax is one option that you can use. But if you want to creates ddl and runtime, then you need to creates them before page load, Preferably Pre_Init(), other wise control will not maintin View State Data also not able to hold postback data.

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

      M 1 Reply Last reply
      0
      • M mark_me

        Hi, Currently, i have one language dropdownlistbox which contains upto 40 languages. I want to add functionality for adding upto 5 languages. I want it similar to languages feature on orkut.com (or maybe facebook), where u choose one language, click a btn and another drop down box with add btn appears, again on click another dropdown and add btn appears (this happens for 10-12 languages). I am confused regarding the implementation in the sense that whether this functionality requires ajax update panel or can it be done using javascript. Is there anyway in which javascript can take data of one ddl and add it to another , so that if i add 5 ddls and then appear and disappear the boxes using javascript and transferring dropdown data from first dropdown box, I can do the appear/disappear part of it but i dont want to assign 40 languages to all 5 controls at same time, i want one to be visible and maybe on a click another appears with the 40 languages from first ddl... Thanks for your opinions and responses

        4 Offline
        4 Offline
        4anusha4
        wrote on last edited by
        #3

        try using cascading dropdown of ajax

        M 1 Reply Last reply
        0
        • A Abhijit Jana

          Ajax is one option that you can use. But if you want to creates ddl and runtime, then you need to creates them before page load, Preferably Pre_Init(), other wise control will not maintin View State Data also not able to hold postback data.

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

          M Offline
          M Offline
          mark_me
          wrote on last edited by
          #4

          Thanks for your reply, I don't want to create the drop down boxes at run time, i think, i will add them to the page with no data and style="display:'none'". (is that a good practise?). Then i will have a button which would display it at client side but how would i transfer values of first dropdown to second (in client side script) if it is made visible. Best regards

          1 Reply Last reply
          0
          • 4 4anusha4

            try using cascading dropdown of ajax

            M Offline
            M Offline
            mark_me
            wrote on last edited by
            #5

            Thankyou, i will look into cascading drop down boxes of ajax... Thankyou..

            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