tags:

views:

85

answers:

1

I have chain of drop down like Country / state and City. Is there is any way to wait until the drop down population then proceed further? like first load the country and then based on the select of an country then load the state and same as city....


function populateLists(listType) {

            // on success do this:<br>
            $.ajax({
            type:"POST",
            url:"Wizard_Using_PageMethod.aspx/GetCountry",
            data: "{}",
            contentType: "application/json; charset=utf-8",
            dataType:"json"
                } 

            });


[WebMethod]
public static CountryList GetCountry()
{
CountryList country = new CountryList();
///go to db and get the data
return country;

}

+1  A: 

I answered a similar question, but that isn't exactly what you want. So you might want to check out this article as well.

fudgey
do you know any link it does interact with DB?i will look the similar question and also read article.thanks
Abu Hamzah