Click here to Skip to main content
15,886,740 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hey !
i have a project that has 4 dropdownlist !
first dropdownlist defines mainland !
well i want when user choose his/her mainland, the countries of the choosen mainland show on second dropdown list and then show states of choosen country in third dropdownlist also show cities in last dropdownlist !
i know must use ajax CascadingDropDown !
i saved the mainlands and countries ... in a xmlfile like below:
C#
<?xml version="1.0" encoding="utf-8" ?>
<nations>
  <mainland Name="Asia">
    <country Namec="Iran">
      <states Names="Tehran">
        <city Nameci="Tehran"/>
      </states>
    </country>
  </mainland>
  <mainland Name="Europe">
    <country Namec="Armenia">
      <states Names="Yerevan">
        <city Nameci="Yerevan"/>
      </states>
    </country>
  </mainland>
  <mainland Name="North America">
    <country Namec="USA">
      <states Names="California">
        <city Nameci="Los Angeles"/>
      </states>
    </country>
  </mainland>
  <mainland Name="South America">
    <country Namec="Brazil">
      <states Names="Brazilia">
        <city Nameci="Brazilia"/>
      </states>
    </country>
  </mainland>
</nations>

my problem is what should enter on .asmx.cs file (web service file) to achieve my wish output ?

please help ! tnx all
Posted
Comments
ali_heidari_ 25-Jul-12 20:37pm    
tell us what is your reason that you vote this question 1?
[no name] 25-Jul-12 21:38pm    
"i know must use ajax CascadingDropDown"... okay so you know what you need to do what is it that you are having trouble with?
ali_heidari_ 26-Jul-12 13:38pm    
i said
"my problem is what should enter on .asmx.cs file (web service file) to achieve my wish output ?"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900