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. we select any country then the corresponding city is displayed in another dropdown without post back

we select any country then the corresponding city is displayed in another dropdown without post back

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

    Hi all how can we select We have two drop down list one for country and another for city.we select any country then the corresponding city is displayed in another dropdown without post back.using AJAX. any one tell me the solution.. Mohd Nasar.

    D C L V 4 Replies Last reply
    0
    • M Mohd Nasar

      Hi all how can we select We have two drop down list one for country and another for city.we select any country then the corresponding city is displayed in another dropdown without post back.using AJAX. any one tell me the solution.. Mohd Nasar.

      D Offline
      D Offline
      dilipv 0
      wrote on last edited by
      #2

      hi, M.Nasar plz refer this site for Populating a DropDownList using AJAX and ASP.NET:-Its also has a sample code.. http://aspalliance.com/716_Populating_a_DropDownList_using_AJAX_and_ASPNET Thankx Regards, Shirazee Kajani Programmer .Net Consulting

      1 Reply Last reply
      0
      • M Mohd Nasar

        Hi all how can we select We have two drop down list one for country and another for city.we select any country then the corresponding city is displayed in another dropdown without post back.using AJAX. any one tell me the solution.. Mohd Nasar.

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

        The solution is to use AJAX. Not sure what else I can say without writing the code for you, but it's so straightforward that it's one of the canonical AJAX examples in books and on the web. The book 'AJAX in Action' has a chapter devoted to how to write what you're after.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        1 Reply Last reply
        0
        • M Mohd Nasar

          Hi all how can we select We have two drop down list one for country and another for city.we select any country then the corresponding city is displayed in another dropdown without post back.using AJAX. any one tell me the solution.. Mohd Nasar.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          for this u hv to use AJAX.. u hv to take scrptmanager after tht take a updatepanel ..city dropdownlist will be placed in tht panel.u hv to also mention trigger in which this event will occur..use ths technique.

          Sujit

          1 Reply Last reply
          0
          • M Mohd Nasar

            Hi all how can we select We have two drop down list one for country and another for city.we select any country then the corresponding city is displayed in another dropdown without post back.using AJAX. any one tell me the solution.. Mohd Nasar.

            V Offline
            V Offline
            Vasudevan Deepak Kumar
            wrote on last edited by
            #5

            Check this out: http://javascript.internet.com/forms/country-state-drop-down.html[^]

            Vasudevan Deepak Kumar Personal Homepage
            Tech Gossips
            A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

            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