ajax就可以了
function CallbackCll(response)
{
if (response.value != null)
{
document.all("DropDownList_province1").length=0;
document.all("DropDownList_area1").length=0;
var ds = response.value;
if(ds != null && typeof(ds) == "object")
{
document.all("DropDownList_province1").options.add(new Option("",""));
for(var i=0; i <ds.Tables[0].Rows.length; i++)
{
var name=ds.Tables[0].Rows[i].Province;
var id=ds.Tables[0].Rows[i].Province;
document.all("DropDownList_province1").options.add(new Option(name,id));
}
}
}
return
}
function areaResult()
{
var area=document.getElementById("DropDownList_province1");
var YR=document.getElementById("Hd_province1");
YR.value=area.value;
AjaxMethod.GetCityList(area.value,get_city_Result);
}
function get_city_Result(response)
{
if (response.value != null)
{
document.all("DropDownList_area1").length=0;
var ds = response.value;
if(ds != null && typeof(ds) == "object")
{
for(var i=0; i <ds.Tables[0].Rows.length; i++)
{
var name=ds.Tables[0].Rows[i].City;
var id=ds.Tables[0].Rows[i].City;
document.all("DropDownList_area1").options.add(new Option(name,id));
}
}
}
return
} http://topic.csdn.net/u/20090610/13/6c171b8a-587a-4042-a63a-ba3428fb66ea.html