This is a pretty common requirement. Implementations may vary. Here's
a generic scenario:

At first, only the countries should filled in the first ComboBox. Upon
selection, a postback request should occur to the server which passes
the selected country ID and retrieves the state ID's and names and
fills the second ComboBox. Then when a State is selected, you can
repeat the process passing the selected State ID and retrieve the
Cities list to populate the third ComboBox. If you do not want a
visible postback upon each index change, you could make the UI much
more user friendly by sending an out-of-band request (read "AJAX") to
retrieve the data in each case.

The question I would ask you is what will you do for those countries
which have no states? IMO, a good idea would be to determine at the
client side itself if a particular Country has States, and if not,
directly request for Cities.

On Sep 2, 8:01 pm, aditya chavan <[email protected]> wrote:
> Hello
> I want some help.
> i have to make an customer detail information its in C#. and in which i have
> to make 3 combo boxes which contains all countries, states & cities
> respectively.
> now what i want is that when i select any country accordingly i should get
> all its states and selecting particular state i should get cites.
> now the problem is that everyone knows that there are many countries ,
> states and their thousands of cities,
> so can anyone provide help regarding this how can i do it in much faster
> way.or anyone already have developed this thing can mail me that will me in
> much better way.
> or can give some idea about this or give any site from where i can get help
> this..??
>
> i hope everyone have got what i want..!!
>
> waiting for your reply..!!!
>
> Thank you..!!
>
> Aditya Chavan

Reply via email to