Will it need any Webservice?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sudhaMurugesan
    New Member
    • May 2007
    • 94

    Will it need any Webservice?

    Hi all,
    I've given a task.I have to get employee's Country,State and city.
    When I select Country as India, In State dropdownlist it must list all the states in India, When I select the state it must list all the cities in that state.But How do I get the states and cities of all in my table to get it binded to the list?
    Any Idea? Will it need any Webservice ? Plz Help.......
    Thanks in Advance
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    Originally posted by sudhaMurugesan
    Hi all,
    I've given a task.I have to get employee's Country,State and city.
    When I select Country as India, In State dropdownlist it must list all the states in India, When I select the state it must list all the cities in that state.But How do I get the states and cities of all in my table to get it binded to the list?
    Any Idea? Will it need any Webservice ? Plz Help.......
    Thanks in Advance
    Use the EditalueChanged Event for the control and write your code in there to bind new values to your drop down lists

    Get all the states,cities (respectively) and either use the items.Add to the control or create a list<string> and use the control.datasou rce to bind it.

    Comment

    • sudhaMurugesan
      New Member
      • May 2007
      • 94

      #3
      Originally posted by Shashi Sadasivan
      Use the EditalueChanged Event for the control and write your code in there to bind new values to your drop down lists

      Get all the states,cities (respectively) and either use the items.Add to the control or create a list<string> and use the control.datasou rce to bind it.
      I Know the coding to bind to dropdownlist. But where will I get these data about all countries, states and cities. If I get these data then do I need to add one by one to the items collection.Than k u for your reply Shashi

      Comment

      • Shashi Sadasivan
        Recognized Expert Top Contributor
        • Aug 2007
        • 1435

        #4
        hi sudhaMurugesan,
        What you are probably looking for is a webservice
        http://www.synapticdig ital.com/webservice/public/regions.asmx?op =listByCountry
        i tried to dig around for one, i have never been good with searching webservices..a bit more study and you might get one that you need.
        cheers
        - Shashi

        Comment

        • sudhaMurugesan
          New Member
          • May 2007
          • 94

          #5
          Originally posted by Shashi Sadasivan
          hi sudhaMurugesan,
          What you are probably looking for is a webservice
          http://www.synapticdig ital.com/webservice/public/regions.asmx?op =listByCountry
          i tried to dig around for one, i have never been good with searching webservices..a bit more study and you might get one that you need.
          cheers
          - Shashi
          Thank You Shashi I will try for other webservice also.
          Cheers

          Comment

          • Shashi Sadasivan
            Recognized Expert Top Contributor
            • Aug 2007
            • 1435

            #6
            Originally posted by sudhaMurugesan
            Thank You Shashi I will try for other webservice also.
            Cheers
            Hi,
            his is what i could find over the weekend:
            http://community.devpi noy.org/blogs/cvega/archive/2006/06/02/3300.aspx

            it gives you the country list, (picks it up from the windows registry)
            I am unable to get the list of cities. migt need a webservice....o r build you list as you learn i suppose!

            Comment

            Working...