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. General Programming
  3. C#
  4. How to manage city,state and country fields in drop down online

How to manage city,state and country fields in drop down online

Scheduled Pinned Locked Moved C#
csharpdatabasehelptutorialquestion
4 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.
  • S Offline
    S Offline
    sumit7034
    wrote on last edited by
    #1

    Hi In my c# windows application I have a registration form having dropdown of Country, State and City fields. I want to fill these dropdown from web as I don't want to fill them from database or any hard coded values. Is there any web service which provide the Country, State and City related updates or Is there any other way to Implement this? Please Help.. Thanks in advance

    J P 2 Replies Last reply
    0
    • S sumit7034

      Hi In my c# windows application I have a registration form having dropdown of Country, State and City fields. I want to fill these dropdown from web as I don't want to fill them from database or any hard coded values. Is there any web service which provide the Country, State and City related updates or Is there any other way to Implement this? Please Help.. Thanks in advance

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      Learn to use google. I simply searched for "country list webservice" and found this: http://www.webservicex.net/country.asmx[^] as the very first result.

      S 1 Reply Last reply
      0
      • J J4amieC

        Learn to use google. I simply searched for "country list webservice" and found this: http://www.webservicex.net/country.asmx[^] as the very first result.

        S Offline
        S Offline
        sumit7034
        wrote on last edited by
        #3

        I also found this link but here I didn't found the way to get City an states corresponding to that country. I know I can also get list of all country using culture info in c#. But still unable to get list of state or city.

        1 Reply Last reply
        0
        • S sumit7034

          Hi In my c# windows application I have a registration form having dropdown of Country, State and City fields. I want to fill these dropdown from web as I don't want to fill them from database or any hard coded values. Is there any web service which provide the Country, State and City related updates or Is there any other way to Implement this? Please Help.. Thanks in advance

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          Don't; they'd be too long. Simply allow the user to type the input and then validate it. Drp down and such are for when you have a very few, lengthy, entries.

          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