Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET XML
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:
<?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 25-Jul-12 14:23pm
Comments
source.compiler at 25-Jul-12 20:37pm
   
tell us what is your reason that you vote this question 1?
Wes Aday at 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?
source.compiler at 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)

  Print Answers RSS
0 OriginalGriff 575
1 George Jonsson 285
2 Garth J Lancaster 280
3 Sergey Alexandrovich Kryukov 264
4 Maciej Los 250
0 Sergey Alexandrovich Kryukov 10,879
1 OriginalGriff 5,555
2 Maciej Los 5,534
3 CPallini 3,819
4 BillWoodruff 3,594


Advertise | Privacy | Mobile
Web03 | 2.8.141030.1 | Last Updated 25 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100