【发布时间】:2010-04-14 18:31:46
【问题描述】:
我有像国家/州和城市这样的下拉链。有什么办法可以等到人口下降后再继续进行?就像首先加载国家,然后根据国家的选择,然后加载州和城市一样....
function populateLists(listType) {
// on success do this:
$.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;
}
【问题讨论】: