2个回答
展开全部
/*这是一个.js文件.3级连动菜单*/
var liandong=Class.create();
liandong.prototype =
{
initialize:function(obj,obj_ipt,subobj,subobj_ipt,data)
{
this.obj = obj;
this.obj_ipt = obj_ipt;
this.subobj = subobj;
this.subobj_ipt = subobj_ipt;
this.data = data;
this.ShowCat();
$(this.obj).onchange = this.objChange.bindAsEventListener(this);
},
show:function(){
//alert("hah");
},
otherOnChang:function(){
//对外保留的接口。
},
objChange:function(){
this.SwitchSubCat($(this.obj).value);
this.otherOnChang();
//alert("change");
},
ShowCat:function(){
var o = $(this.obj);
o.length=0;
if(this.data.length <= 0) return;
for(var i=0; i < this.data.length; i++){
var opt = document.createElement('OPTION');
opt.text = this.data[i].name;
opt.value = this.data[i].val;
o.options.add(opt, o.length);
}
this.SwitchSubCat(this.data[0].val);
},
SwitchSubCat:function(id){
var o = $(this.subobj);
var subval=o.value;
o.length=0;
if(this.data.length <= 0) return;
var SubCat = null;
for(var i=0; i < this.data.length; i++){
if(this.data[i].val == id){
SubCat = this.data[i].sub;
if(this.data[i].subval){
SubCatVal = this.data[i].subval;
}else{
SubCatVal = this.data[i].sub;
}
for(var n=0; n < SubCat.length; n++){
var opt = document.createElement('OPTION');
opt.text = SubCat[n];
opt.value = SubCatVal[n];
if(n==0) opt.value="";
o.options.add(opt, o.length);
}
o.style.display = (SubCat.length == 0)? "none":"";
break;
}
}
//this.autoSelect(this.subobj,subval);
if(SubCat == null) o.style.display = "none";
},
ShowSelect:function(oval,suboval){
if(this.data.length <= 0) return;
$(this.obj_ipt).value=oval;
$(this.subobj_ipt).value=suboval;
if(!this.autoSelect(this.obj,oval)){
//两个都是自己填写的。
this.autoSelect(this.obj,"其它");
$(this.obj_ipt).style.display="";
$(this.obj_ipt).value=oval;
this.SwitchSubCat("其它");
if(!this.autoSelect(this.subobj,suboval)){
//第二个
this.autoSelect(this.subobj,"其它");
$(this.subobj_ipt).style.display="";
$(this.subobj_ipt).value=suboval;
}
}else{
//第一个是选的
this.SwitchSubCat(oval);
if(!this.autoSelect(this.subobj,suboval)){
//第二个是自己填写的
this.autoSelect(this.subobj,"其它");
$(this.subobj_ipt).style.display="";
$(this.subobj_ipt).value=suboval;
}
}
},
autoSelect:function(itm, val){
var o=$(itm);
for (i=0;i<o.options.length;i++){
if(o.options[i].value==val){
o.selectedIndex = i;
return true;
//break;
}
}
return false;
}
}
var liandong_md=Class.create();
liandong_md.prototype =
{
initialize:function(obj,subobj,data)
{
this.obj = obj || 0;
this.subobj = subobj;
this.data = data;
this.ShowCat();
$(this.obj).onchange = this.objChange.bindAsEventListener(this);
},
show:function(){
//alert("hah");
},
otherOnChang:function(){
//对外保留的接口。
},
objChange:function(){
this.SwitchSubCat($(this.obj).value);
this.otherOnChang();
//alert("change");
},
ShowCat:function(){
var o = $(this.obj);
o.length=0;
if(this.data.length <= 0) return;
for(var i=0; i < this.data.length; i++){
var opt = document.createElement('OPTION');
opt.text = this.data[i].name;
opt.value = this.data[i].val;
o.options.add(opt, o.length);
}
this.SwitchSubCat(this.data[0].val);
},
SwitchSubCat:function(id){
var o = $(this.subobj);
var subval=o.value;
o.length=0;
if(this.data.length <= 0) return;
var SubCat = null;
for(var i=0; i < this.data.length; i++){
if(this.data[i].val == id){
SubCat = this.data[i].sub;
if(this.data[i].subval){
SubCatVal = this.data[i].subval;
}else{
SubCatVal = this.data[i].sub;
}
for(var n=0; n < SubCat.length; n++){
var opt = document.createElement('OPTION');
opt.text = SubCat[n];
opt.value = SubCatVal[n];
if(n==0) opt.value="";
o.options.add(opt, o.length);
}
o.style.display = (SubCat.length == 0)? "none":"";
break;
}
}
this.autoSelect(this.subobj,subval);
if(SubCat == null) o.style.display = "none";
},
ShowSelect:function(oval,suboval){
if(this.data.length <= 0) return;
this.autoSelect(this.obj,oval);
this.SwitchSubCat(oval);
this.autoSelect(this.subobj,suboval);
},
autoSelect:function(itm, val){
var o=$(itm);
for (i=0;i<o.options.length;i++){
if(o.options[i].value==val){
o.selectedIndex = i;
break;
}
}
}
}
function checkxz(m,d){
var renum=/^\d+$/i;
if( !(renum.test(m) && renum.test(d) && m>0 && d>0 ) ) return "";
m=parseInt(m);
d=parseInt(d);
var xzi;
var XZDict = '摩羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手';
var Zone = new Array(1222,120,219,321,421,521,622,723,823,923,1023,1122,1222);
if((100*m+d)>=Zone[0]||(100*m+d)<Zone[1])
xzi=0;
else
for(xzi=1;xzi<12;xzi++){
if((100*m+d)>=Zone[xzi]&&(100*m+d)<Zone[xzi+1])
break;
}
result = XZDict.substring(2*xzi,2*xzi+2)+'座-'+((xzi==0)?12:xzi);
return result;
}
function checkinarr(str){
for(i=0;i<arr.length;i++){
if(str==arr[i].val){
return arr[i].val+",";
}else{
for(j=0;j<arr[i].sub.length;j++){
if(str==arr[i].sub[j]){
return arr[i].val+","+arr[i].sub[j];
}
}
}
}
return false;
}
var arr =
{
0:{ name:"无", val:"", sub:["无","其它"]},
1:{ name:"北京", val:"北京", sub:["无","东城区","西城区","崇文区","宣武区","朝阳区","丰台区","石景山区","海淀区","门头沟区","房山区","通州区","顺义区","延庆县","昌平区","怀柔区","密云县","平谷区","大兴区","其它"]},
2:{ name:"上海", val:"上海", sub:["无","黄浦区","卢湾区","徐汇区","长宁区","静安区","普陀区","闸北区","虹口区","杨浦区","闵行区","宝山区","嘉定区","浦东新区","金山区","松江区","崇明县","青浦区","南汇区","奉贤区","其它"]},
3:{ name:"天津", val:"天津", sub:["无","和平区","河东区","河西区","南开区","河北区","红桥区","塘沽区","大港区","东丽区","西青区","津南区","北辰区","蓟县","宝坻区","武清区","宁河县","静海县","汉沽区","其它"]},
4:{ name:"重庆", val:"重庆", sub:["无","渝中区","大渡口区","江北区","沙坪坝区","九龙坡区","南岸区","北碚区","万盛区","双桥区","渝北区","巴南区","万州区","涪陵区","合川","永川","江津","南川","长寿区","綦江县","潼南县","铜梁县","大足县","荣昌县","璧山县","垫江县","武隆县","丰都县","城口县","梁平县","黔江区","奉节县","开县","云阳县","忠县","巫溪县","巫山县","其它"]},
5:{ name:"安徽", val:"安徽", sub:["无","合肥","宿州","淮北","阜阳","蚌埠","淮南","滁州","马鞍山","芜湖","铜陵","安庆","黄山","六安","巢湖","池州","宣城","亳州","其它"]},
6:{ name:"福建", val:"福建", sub:["无","福州","南平","三明","莆田","泉州","厦门","漳州","龙岩","宁德","其它"]},
7:{ name:"甘肃", val:"甘肃", sub:["无","兰州","嘉峪关","金昌","白银","天水","酒泉","张掖","武威","庆阳","平凉","定西","陇南地区","玉门","敦煌","其它"]},
8:{ name:"河北", val:"河北", sub:["无","石家庄","张家口","承德","秦皇岛","唐山","廊坊","保定","沧州","衡水","邢台","邯郸","其它"]},
9:{ name:"黑龙江", val:"黑龙江", sub:["无","哈尔滨","齐齐哈尔","黑河","大庆","伊春","鹤岗","佳木斯","双鸭山","七台河","鸡西","牡丹江","绥化地区","大兴安岭地区","其它"]},
10:{ name:"广东", val:"广东", sub:["无","广州","清远","韶关","河源","梅州","潮州","汕头","揭阳","汕尾","惠州","东莞","深圳","珠海","中山","江门","佛山","肇庆","云浮","阳江","茂名","湛江","其它"]},
11:{ name:"广西", val:"广西", sub:["无","南宁","桂林","柳州","梧州","贵港","玉林","钦州","北海","防城港","百色","河池地区","贺州地区","崇左","凭祥","来宾","其它"]},
12:{ name:"贵州", val:"贵州", sub:["无","贵阳","六盘水","遵义","毕节地区","铜仁地区","安顺","其它"]},
13:{ name:"河南", val:"河南", sub:["无","郑州","三门峡","洛阳","焦作","新乡","鹤壁","安阳","濮阳","开封","商丘","许昌","漯河","平顶山","南阳","信阳","济源","周口","驻马店","其它"]},
14:{ name:"湖北", val:"湖北", sub:["无","武汉","十堰","襄樊","荆门","孝感","黄冈","鄂州","黄石","咸宁","荆州","宜昌","随州","仙桃","天门","潜江","神农架林区","其它"]},
15:{ name:"湖南", val:"湖南", sub:["无","长沙","张家界","常德","益阳","岳阳","株洲","湘潭","衡阳","郴州","永州","邵阳","怀化","娄底","其它"]},
16:{ name:"海南", val:"海南", sub:["无","海口","三亚","琼山","文昌","琼海","万宁","东方","儋州","临高县","澄迈县","定安县","屯昌县","五指山","其它"]},
17:{ name:"江苏", val:"江苏", sub:["无","南京","徐州","连云港","宿迁","淮阴","盐城","扬州","泰州","南通","镇江","常州","无锡","苏州","淮安","其它"]},
18:{ name:"江西", val:"江西", sub:["无","南昌","九江","景德镇","鹰潭","新余","萍乡","赣州","上饶","抚州","宜春","吉安","其它"]},
19:{ name:"吉林", val:"吉林", sub:["无","长春","白城","松原","吉林","四平","辽源","通化","白山","延边","其它"]},
20:{ name:"辽宁", val:"辽宁", sub:["无","沈阳","朝阳","阜新","铁岭","抚顺","本溪","辽阳","鞍山","丹东","大连","营口","盘锦","锦州","葫芦岛","其它"]},
21:{ name:"内蒙古", val:"内蒙古", sub:["无","呼和浩特","包头","乌海","赤峰","呼伦贝尔","兴安盟","锡林郭勒盟","乌兰察布","巴彦淖尔","阿拉善盟","鄂尔多斯","通辽","其它"]},
22:{ name:"宁夏", val:"宁夏", sub:["无","银川","石嘴山","吴忠","固原","其它"]},
23:{ name:"青海", val:"青海", sub:["无","西宁","海东地区","其它地区"]},
24:{ name:"山东", val:"山东", sub:["无","济南","聊城","德州","东营","淄博","潍坊","烟台","威海","青岛","日照","临沂","枣庄","济宁","泰安","莱芜","滨州","菏泽","其它"]},
25:{ name:"山西", val:"山西", sub:["无","太原","大同","朔州","阳泉","长治","晋城","忻州","吕梁","晋中","临汾","运城","其它"]},
26:{ name:"陕西", val:"陕西", sub:["无","西安","延安","铜川","渭南","咸阳","宝鸡","汉中","榆林","商洛","安康","其它"]},
27:{ name:"四川", val:"四川", sub:["无","成都","广元","绵阳","德阳","南充","广安","遂宁","内江","乐山","自贡","泸州","宜宾","攀枝花","巴中","达州","资阳","眉山","雅安","其它"]},
28:{ name:"新疆", val:"新疆", sub:["无","乌鲁木齐","克拉玛依","石河子","喀什地区","阿克苏地区","和田地区","吐鲁番地区","哈密地区","其它"]},
29:{ name:"西藏", val:"西藏", sub:["无","拉萨","那曲地区","昌都地区","林芝地区","山南地区","日喀则地区","阿里地区","其它"]},
30:{ name:"云南", val:"云南", sub:["无","昆明","曲靖","玉溪","丽江","昭通","思茅","临沧地区","保山","西双版纳","大理","其它"]},
31:{ name:"浙江", val:"浙江", sub:["无","杭州","湖州","嘉兴","舟山","宁波","绍兴","金华","台州","温州","丽水","衢州","其它"]},
32:{ name:"香港", val:"香港", sub:["无","九龙城区","观塘区","深水埗区","黄大仙区","湾仔区","油尖旺区","离岛区","葵青区","西贡区","沙田区","屯门区","大埔区","荃湾区","元朗区","其它"]},
33:{ name:"澳门", val:"澳门", sub:["无","其它"]},
34:{ name:"台湾", val:"台湾", sub:["无","台北市","高雄市","基隆市","台中市","台南市","新竹市","嘉义市","北县","板桥市","宜兰县","宜兰市","桃园县","桃园市","新竹县","竹北市","苗栗县","苗栗市","台中县","丰原市","彰化县","彰化市","南投县","南投市","云林县","斗六市","嘉义县","太保市","台南县","新营市","高雄县","凤山市","屏东县","屏东市","澎湖县","马东市","台东县","台东市","花莲县","花莲市","金门县","连江县","其它"]},
35:{ name:"海外", val:"海外", sub:["无","其它"]},
36:{ name:"其它", val:"其它", sub:["无","其它"]},
length:37
};
var arr2 =
{
0:{ name:"无", val:"0", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
1:{ name:"1", val:"1", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
2:{ name:"2", val:"2", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]},
3:{ name:"3", val:"3", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
4:{ name:"4", val:"4", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},
5:{ name:"5", val:"5", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
6:{ name:"6", val:"6", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},
7:{ name:"7", val:"7", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
8:{ name:"8", val:"8", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
9:{ name:"9", val:"9", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},
10:{ name:"10", val:"10", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
11:{ name:"11", val:"11", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},
12:{ name:"12", val:"12", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
length:13
};
var arr3 =
{
0:{ name:"请选择", val:"", sub:["请选择"],subval:[""]},
1:{ name:"北京", val:"北京", sub:["请选择","东城区","西城区","崇文区","宣武区","朝阳区","丰台区","石景山区","海淀区","门头沟区","房山区","通州区","顺义区","延庆县","昌平区","怀柔区","密云县","平谷区","大兴区"]},
2:{ name:"上海", val:"上海", sub:["请选择","黄浦区","卢湾区","徐汇区","长宁区","静安区","普陀区","闸北区","虹口区","杨浦区","闵行区","宝山区","嘉定区","浦东新区","金山区","松江区","崇明县","青浦区","南汇区","奉贤区"]},
3:{ name:"天津", val:"天津", sub:["请选择","和平区","河东区","河西区","南开区","河北区","红桥区","塘沽区","大港区","东丽区","西青区","津南区","北辰区","蓟县","宝坻区","武清区","宁河县","静海县","汉沽区"]},
4:{ name:"重庆", val:"重庆", sub:["请选择","渝中区","大渡口区","江北区","沙坪坝区","九龙坡区","南岸区","北碚区","万盛区","双桥区","渝北区","巴南区","万州区","涪陵区","合川","永川","江津","南川","长寿区","綦江县","潼南县","铜梁县","大足县","荣昌县","璧山县","垫江县","武隆县","丰都县","城口县","梁平县","黔江区","奉节县","开县","云阳县","忠县","巫溪县","巫山县"]},
5:{ name:"安徽", val:"安徽", sub:["请选择","合肥","宿州","淮北","阜阳","蚌埠","淮南","滁州","马鞍山","芜湖","铜陵","安庆","黄山","六安","巢湖","池州","宣城","亳州"]},
6:{ name:"福建", val:"福建", sub:["请选择","福州","南平","三明","莆田","泉州","厦门","漳州","龙岩","宁德"]},
7:{ name:"甘肃", val:"甘肃", sub:["请选择","兰州","嘉峪关","金昌","白银","天水","酒泉","张掖","武威","庆阳","平凉","定西","陇南地区","玉门","敦煌"]},
8:{ name:"河北", val:"河北", sub:["请选择","石家庄","张家口","承德","秦皇岛","唐山","廊坊","保定","沧州","衡水","邢台","邯郸"]},
9:{ name:"黑龙江", val:"黑龙江", sub:["请选择","哈尔滨","齐齐哈尔","黑河","大庆","伊春","鹤岗","佳木斯","双鸭山","七台河","鸡西","牡丹江","绥化地区","大兴安岭地区"]},
10:{ name:"广东", val:"广东", sub:["请选择","广州","清远","韶关","河源","梅州","潮州","汕头","揭阳","汕尾","惠州","东莞","深圳","珠海","中山","江门","佛山","肇庆","云浮","阳江","茂名","湛江"]},
11:{ name:"广西", val:"广西", sub:["请选择","南宁","桂林","柳州","梧州","贵港","玉林","钦州","北海","防城港","百色","河池地区","贺州地区","崇左","凭祥","来宾"]},
12:{ name:"贵州", val:"贵州", sub:["请选择","贵阳","六盘水","遵义","毕节地区","铜仁地区","安顺"]},
13:{ name:"河南", val:"河南", sub:["请选择","郑州","三门峡","洛阳","焦作","新乡","鹤壁","安阳","濮阳","开封","商丘","许昌","漯河","平顶山","南阳","信阳","济源","周口","驻马店"]},
14:{ name:"湖北", val:"湖北", sub:["请选择","武汉","十堰","襄樊","荆门","孝感","黄冈","鄂州","黄石","咸宁","荆州","宜昌","随州","仙桃","天门","潜江","神农架林区"]},
15:{ name:"湖南", val:"湖南", sub:["请选择","长沙","张家界","常德","益阳","岳阳","株洲","湘潭","衡阳","郴州","永州","邵阳","怀化","娄底"]},
16:{ name:"海南", val:"海南", sub:["请选择","海口","三亚","琼山","文昌","琼海","万宁","东方","儋州","临高县","澄迈县","定安县","屯昌县","五指山"]},
17:{ name:"江苏", val:"江苏", sub:["请选择","南京","徐州","连云港","宿迁","淮阴","盐城","扬州","泰州","南通","镇江","常州","无锡","苏州","淮安"]},
18:{ name:"江西", val:"江西", sub:["请选择","南昌","九江","景德镇","鹰潭","新余","萍乡","赣州","上饶","抚州","宜春","吉安"]},
19:{ name:"吉林", val:"吉林", sub:["请选择","长春","白城","松原","吉林","四平","辽源","通化","白山","延边"]},
20:{ name:"辽宁", val:"辽宁", sub:["请选择","沈阳","朝阳","阜新","铁岭","抚顺","本溪","辽阳","鞍山","丹东","大连","营口","盘锦","锦州","葫芦岛"]},
21:{ name:"内蒙古", val:"内蒙古", sub:["请选择","呼和浩特","包头","乌海","赤峰","呼伦贝尔","兴安盟","锡林郭勒盟","乌兰察布","巴彦淖尔","阿拉善盟","鄂尔多斯","通辽"]},
22:{ name:"宁夏", val:"宁夏", sub:["请选择","银川","石嘴山","吴忠","固原"]},
23:{ name:"青海", val:"青海", sub:["请选择","西宁","海东地区"]},
24:{ name:"山东", val:"山东", sub:["请选择","济南","聊城","德州","东营","淄博","潍坊","烟台","威海","青岛","日照","临沂","枣庄","济宁","泰安","莱芜","滨州","菏泽"]},
25:{ name:"山西", val:"山西", sub:["请选择","太原","大同","朔州","阳泉","长治","晋城","忻州","吕梁","晋中","临汾","运城"]},
26:{ name:"陕西", val:"陕西", sub:["请选择","西安","延安","铜川","渭南","咸阳","宝鸡","汉中","榆林","商洛","安康"]},
27:{ name:"四川", val:"四川", sub:["请选择","成都","广元","绵阳","德阳","南充","广安","遂宁","内江","乐山","自贡","泸州","宜宾","攀枝花","巴中","达州","资阳","眉山","雅安"]},
28:{ name:"新疆", val:"新疆", sub:["请选择","乌鲁木齐","克拉玛依","石河子","喀什地区","阿克苏地区","和田地区","吐鲁番地区","哈密地区"]},
29:{ name:"西藏", val:"西藏", sub:["请选择","拉萨","那曲地区","昌都地区","林芝地区","山南地区","日喀则地区","阿里地区"]},
30:{ name:"云南", val:"云南", sub:["请选择","昆明","曲靖","玉溪","丽江","昭通","思茅","临沧地区","保山","西双版纳","大理"]},
31:{ name:"浙江", val:"浙江", sub:["请选择","杭州","湖州","嘉兴","舟山","宁波","绍兴","金华","台州","温州","丽水","衢州"]},
32:{ name:"香港", val:"香港", sub:["请选择","九龙城区","观塘区","深水埗区","黄大仙区","湾仔区","油尖旺区","离岛区","葵青区","西贡区","沙田区","屯门区","大埔区","荃湾区","元朗区","其它"]},
33:{ name:"澳门", val:"澳门", sub:["请选择","其它"]},
34:{ name:"台湾", val:"台湾", sub:["请选择","台北市","高雄市","基隆市","台中市","台南市","新竹市","嘉义市","北县","板桥市","宜兰县","宜兰市","桃园县","桃园市","新竹县","竹北市","苗栗县","苗栗市","台中县","丰原市","彰化县","彰化市","南投县","南投市","云林县","斗六市","嘉义县","太保市","台南县","新营市","高雄县","凤山市","屏东县","屏东市","澎湖县","马东市","台东县","台东市","花莲县","花莲市","金门县","连江县","其它"]},
35:{ name:"海外", val:"海外", sub:["请选择","其它"]},
length:36
};
var liandong=Class.create();
liandong.prototype =
{
initialize:function(obj,obj_ipt,subobj,subobj_ipt,data)
{
this.obj = obj;
this.obj_ipt = obj_ipt;
this.subobj = subobj;
this.subobj_ipt = subobj_ipt;
this.data = data;
this.ShowCat();
$(this.obj).onchange = this.objChange.bindAsEventListener(this);
},
show:function(){
//alert("hah");
},
otherOnChang:function(){
//对外保留的接口。
},
objChange:function(){
this.SwitchSubCat($(this.obj).value);
this.otherOnChang();
//alert("change");
},
ShowCat:function(){
var o = $(this.obj);
o.length=0;
if(this.data.length <= 0) return;
for(var i=0; i < this.data.length; i++){
var opt = document.createElement('OPTION');
opt.text = this.data[i].name;
opt.value = this.data[i].val;
o.options.add(opt, o.length);
}
this.SwitchSubCat(this.data[0].val);
},
SwitchSubCat:function(id){
var o = $(this.subobj);
var subval=o.value;
o.length=0;
if(this.data.length <= 0) return;
var SubCat = null;
for(var i=0; i < this.data.length; i++){
if(this.data[i].val == id){
SubCat = this.data[i].sub;
if(this.data[i].subval){
SubCatVal = this.data[i].subval;
}else{
SubCatVal = this.data[i].sub;
}
for(var n=0; n < SubCat.length; n++){
var opt = document.createElement('OPTION');
opt.text = SubCat[n];
opt.value = SubCatVal[n];
if(n==0) opt.value="";
o.options.add(opt, o.length);
}
o.style.display = (SubCat.length == 0)? "none":"";
break;
}
}
//this.autoSelect(this.subobj,subval);
if(SubCat == null) o.style.display = "none";
},
ShowSelect:function(oval,suboval){
if(this.data.length <= 0) return;
$(this.obj_ipt).value=oval;
$(this.subobj_ipt).value=suboval;
if(!this.autoSelect(this.obj,oval)){
//两个都是自己填写的。
this.autoSelect(this.obj,"其它");
$(this.obj_ipt).style.display="";
$(this.obj_ipt).value=oval;
this.SwitchSubCat("其它");
if(!this.autoSelect(this.subobj,suboval)){
//第二个
this.autoSelect(this.subobj,"其它");
$(this.subobj_ipt).style.display="";
$(this.subobj_ipt).value=suboval;
}
}else{
//第一个是选的
this.SwitchSubCat(oval);
if(!this.autoSelect(this.subobj,suboval)){
//第二个是自己填写的
this.autoSelect(this.subobj,"其它");
$(this.subobj_ipt).style.display="";
$(this.subobj_ipt).value=suboval;
}
}
},
autoSelect:function(itm, val){
var o=$(itm);
for (i=0;i<o.options.length;i++){
if(o.options[i].value==val){
o.selectedIndex = i;
return true;
//break;
}
}
return false;
}
}
var liandong_md=Class.create();
liandong_md.prototype =
{
initialize:function(obj,subobj,data)
{
this.obj = obj || 0;
this.subobj = subobj;
this.data = data;
this.ShowCat();
$(this.obj).onchange = this.objChange.bindAsEventListener(this);
},
show:function(){
//alert("hah");
},
otherOnChang:function(){
//对外保留的接口。
},
objChange:function(){
this.SwitchSubCat($(this.obj).value);
this.otherOnChang();
//alert("change");
},
ShowCat:function(){
var o = $(this.obj);
o.length=0;
if(this.data.length <= 0) return;
for(var i=0; i < this.data.length; i++){
var opt = document.createElement('OPTION');
opt.text = this.data[i].name;
opt.value = this.data[i].val;
o.options.add(opt, o.length);
}
this.SwitchSubCat(this.data[0].val);
},
SwitchSubCat:function(id){
var o = $(this.subobj);
var subval=o.value;
o.length=0;
if(this.data.length <= 0) return;
var SubCat = null;
for(var i=0; i < this.data.length; i++){
if(this.data[i].val == id){
SubCat = this.data[i].sub;
if(this.data[i].subval){
SubCatVal = this.data[i].subval;
}else{
SubCatVal = this.data[i].sub;
}
for(var n=0; n < SubCat.length; n++){
var opt = document.createElement('OPTION');
opt.text = SubCat[n];
opt.value = SubCatVal[n];
if(n==0) opt.value="";
o.options.add(opt, o.length);
}
o.style.display = (SubCat.length == 0)? "none":"";
break;
}
}
this.autoSelect(this.subobj,subval);
if(SubCat == null) o.style.display = "none";
},
ShowSelect:function(oval,suboval){
if(this.data.length <= 0) return;
this.autoSelect(this.obj,oval);
this.SwitchSubCat(oval);
this.autoSelect(this.subobj,suboval);
},
autoSelect:function(itm, val){
var o=$(itm);
for (i=0;i<o.options.length;i++){
if(o.options[i].value==val){
o.selectedIndex = i;
break;
}
}
}
}
function checkxz(m,d){
var renum=/^\d+$/i;
if( !(renum.test(m) && renum.test(d) && m>0 && d>0 ) ) return "";
m=parseInt(m);
d=parseInt(d);
var xzi;
var XZDict = '摩羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手';
var Zone = new Array(1222,120,219,321,421,521,622,723,823,923,1023,1122,1222);
if((100*m+d)>=Zone[0]||(100*m+d)<Zone[1])
xzi=0;
else
for(xzi=1;xzi<12;xzi++){
if((100*m+d)>=Zone[xzi]&&(100*m+d)<Zone[xzi+1])
break;
}
result = XZDict.substring(2*xzi,2*xzi+2)+'座-'+((xzi==0)?12:xzi);
return result;
}
function checkinarr(str){
for(i=0;i<arr.length;i++){
if(str==arr[i].val){
return arr[i].val+",";
}else{
for(j=0;j<arr[i].sub.length;j++){
if(str==arr[i].sub[j]){
return arr[i].val+","+arr[i].sub[j];
}
}
}
}
return false;
}
var arr =
{
0:{ name:"无", val:"", sub:["无","其它"]},
1:{ name:"北京", val:"北京", sub:["无","东城区","西城区","崇文区","宣武区","朝阳区","丰台区","石景山区","海淀区","门头沟区","房山区","通州区","顺义区","延庆县","昌平区","怀柔区","密云县","平谷区","大兴区","其它"]},
2:{ name:"上海", val:"上海", sub:["无","黄浦区","卢湾区","徐汇区","长宁区","静安区","普陀区","闸北区","虹口区","杨浦区","闵行区","宝山区","嘉定区","浦东新区","金山区","松江区","崇明县","青浦区","南汇区","奉贤区","其它"]},
3:{ name:"天津", val:"天津", sub:["无","和平区","河东区","河西区","南开区","河北区","红桥区","塘沽区","大港区","东丽区","西青区","津南区","北辰区","蓟县","宝坻区","武清区","宁河县","静海县","汉沽区","其它"]},
4:{ name:"重庆", val:"重庆", sub:["无","渝中区","大渡口区","江北区","沙坪坝区","九龙坡区","南岸区","北碚区","万盛区","双桥区","渝北区","巴南区","万州区","涪陵区","合川","永川","江津","南川","长寿区","綦江县","潼南县","铜梁县","大足县","荣昌县","璧山县","垫江县","武隆县","丰都县","城口县","梁平县","黔江区","奉节县","开县","云阳县","忠县","巫溪县","巫山县","其它"]},
5:{ name:"安徽", val:"安徽", sub:["无","合肥","宿州","淮北","阜阳","蚌埠","淮南","滁州","马鞍山","芜湖","铜陵","安庆","黄山","六安","巢湖","池州","宣城","亳州","其它"]},
6:{ name:"福建", val:"福建", sub:["无","福州","南平","三明","莆田","泉州","厦门","漳州","龙岩","宁德","其它"]},
7:{ name:"甘肃", val:"甘肃", sub:["无","兰州","嘉峪关","金昌","白银","天水","酒泉","张掖","武威","庆阳","平凉","定西","陇南地区","玉门","敦煌","其它"]},
8:{ name:"河北", val:"河北", sub:["无","石家庄","张家口","承德","秦皇岛","唐山","廊坊","保定","沧州","衡水","邢台","邯郸","其它"]},
9:{ name:"黑龙江", val:"黑龙江", sub:["无","哈尔滨","齐齐哈尔","黑河","大庆","伊春","鹤岗","佳木斯","双鸭山","七台河","鸡西","牡丹江","绥化地区","大兴安岭地区","其它"]},
10:{ name:"广东", val:"广东", sub:["无","广州","清远","韶关","河源","梅州","潮州","汕头","揭阳","汕尾","惠州","东莞","深圳","珠海","中山","江门","佛山","肇庆","云浮","阳江","茂名","湛江","其它"]},
11:{ name:"广西", val:"广西", sub:["无","南宁","桂林","柳州","梧州","贵港","玉林","钦州","北海","防城港","百色","河池地区","贺州地区","崇左","凭祥","来宾","其它"]},
12:{ name:"贵州", val:"贵州", sub:["无","贵阳","六盘水","遵义","毕节地区","铜仁地区","安顺","其它"]},
13:{ name:"河南", val:"河南", sub:["无","郑州","三门峡","洛阳","焦作","新乡","鹤壁","安阳","濮阳","开封","商丘","许昌","漯河","平顶山","南阳","信阳","济源","周口","驻马店","其它"]},
14:{ name:"湖北", val:"湖北", sub:["无","武汉","十堰","襄樊","荆门","孝感","黄冈","鄂州","黄石","咸宁","荆州","宜昌","随州","仙桃","天门","潜江","神农架林区","其它"]},
15:{ name:"湖南", val:"湖南", sub:["无","长沙","张家界","常德","益阳","岳阳","株洲","湘潭","衡阳","郴州","永州","邵阳","怀化","娄底","其它"]},
16:{ name:"海南", val:"海南", sub:["无","海口","三亚","琼山","文昌","琼海","万宁","东方","儋州","临高县","澄迈县","定安县","屯昌县","五指山","其它"]},
17:{ name:"江苏", val:"江苏", sub:["无","南京","徐州","连云港","宿迁","淮阴","盐城","扬州","泰州","南通","镇江","常州","无锡","苏州","淮安","其它"]},
18:{ name:"江西", val:"江西", sub:["无","南昌","九江","景德镇","鹰潭","新余","萍乡","赣州","上饶","抚州","宜春","吉安","其它"]},
19:{ name:"吉林", val:"吉林", sub:["无","长春","白城","松原","吉林","四平","辽源","通化","白山","延边","其它"]},
20:{ name:"辽宁", val:"辽宁", sub:["无","沈阳","朝阳","阜新","铁岭","抚顺","本溪","辽阳","鞍山","丹东","大连","营口","盘锦","锦州","葫芦岛","其它"]},
21:{ name:"内蒙古", val:"内蒙古", sub:["无","呼和浩特","包头","乌海","赤峰","呼伦贝尔","兴安盟","锡林郭勒盟","乌兰察布","巴彦淖尔","阿拉善盟","鄂尔多斯","通辽","其它"]},
22:{ name:"宁夏", val:"宁夏", sub:["无","银川","石嘴山","吴忠","固原","其它"]},
23:{ name:"青海", val:"青海", sub:["无","西宁","海东地区","其它地区"]},
24:{ name:"山东", val:"山东", sub:["无","济南","聊城","德州","东营","淄博","潍坊","烟台","威海","青岛","日照","临沂","枣庄","济宁","泰安","莱芜","滨州","菏泽","其它"]},
25:{ name:"山西", val:"山西", sub:["无","太原","大同","朔州","阳泉","长治","晋城","忻州","吕梁","晋中","临汾","运城","其它"]},
26:{ name:"陕西", val:"陕西", sub:["无","西安","延安","铜川","渭南","咸阳","宝鸡","汉中","榆林","商洛","安康","其它"]},
27:{ name:"四川", val:"四川", sub:["无","成都","广元","绵阳","德阳","南充","广安","遂宁","内江","乐山","自贡","泸州","宜宾","攀枝花","巴中","达州","资阳","眉山","雅安","其它"]},
28:{ name:"新疆", val:"新疆", sub:["无","乌鲁木齐","克拉玛依","石河子","喀什地区","阿克苏地区","和田地区","吐鲁番地区","哈密地区","其它"]},
29:{ name:"西藏", val:"西藏", sub:["无","拉萨","那曲地区","昌都地区","林芝地区","山南地区","日喀则地区","阿里地区","其它"]},
30:{ name:"云南", val:"云南", sub:["无","昆明","曲靖","玉溪","丽江","昭通","思茅","临沧地区","保山","西双版纳","大理","其它"]},
31:{ name:"浙江", val:"浙江", sub:["无","杭州","湖州","嘉兴","舟山","宁波","绍兴","金华","台州","温州","丽水","衢州","其它"]},
32:{ name:"香港", val:"香港", sub:["无","九龙城区","观塘区","深水埗区","黄大仙区","湾仔区","油尖旺区","离岛区","葵青区","西贡区","沙田区","屯门区","大埔区","荃湾区","元朗区","其它"]},
33:{ name:"澳门", val:"澳门", sub:["无","其它"]},
34:{ name:"台湾", val:"台湾", sub:["无","台北市","高雄市","基隆市","台中市","台南市","新竹市","嘉义市","北县","板桥市","宜兰县","宜兰市","桃园县","桃园市","新竹县","竹北市","苗栗县","苗栗市","台中县","丰原市","彰化县","彰化市","南投县","南投市","云林县","斗六市","嘉义县","太保市","台南县","新营市","高雄县","凤山市","屏东县","屏东市","澎湖县","马东市","台东县","台东市","花莲县","花莲市","金门县","连江县","其它"]},
35:{ name:"海外", val:"海外", sub:["无","其它"]},
36:{ name:"其它", val:"其它", sub:["无","其它"]},
length:37
};
var arr2 =
{
0:{ name:"无", val:"0", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
1:{ name:"1", val:"1", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
2:{ name:"2", val:"2", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]},
3:{ name:"3", val:"3", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
4:{ name:"4", val:"4", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},
5:{ name:"5", val:"5", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
6:{ name:"6", val:"6", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},
7:{ name:"7", val:"7", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
8:{ name:"8", val:"8", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
9:{ name:"9", val:"9", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},
10:{ name:"10", val:"10", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
11:{ name:"11", val:"11", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},
12:{ name:"12", val:"12", sub:["无",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},
length:13
};
var arr3 =
{
0:{ name:"请选择", val:"", sub:["请选择"],subval:[""]},
1:{ name:"北京", val:"北京", sub:["请选择","东城区","西城区","崇文区","宣武区","朝阳区","丰台区","石景山区","海淀区","门头沟区","房山区","通州区","顺义区","延庆县","昌平区","怀柔区","密云县","平谷区","大兴区"]},
2:{ name:"上海", val:"上海", sub:["请选择","黄浦区","卢湾区","徐汇区","长宁区","静安区","普陀区","闸北区","虹口区","杨浦区","闵行区","宝山区","嘉定区","浦东新区","金山区","松江区","崇明县","青浦区","南汇区","奉贤区"]},
3:{ name:"天津", val:"天津", sub:["请选择","和平区","河东区","河西区","南开区","河北区","红桥区","塘沽区","大港区","东丽区","西青区","津南区","北辰区","蓟县","宝坻区","武清区","宁河县","静海县","汉沽区"]},
4:{ name:"重庆", val:"重庆", sub:["请选择","渝中区","大渡口区","江北区","沙坪坝区","九龙坡区","南岸区","北碚区","万盛区","双桥区","渝北区","巴南区","万州区","涪陵区","合川","永川","江津","南川","长寿区","綦江县","潼南县","铜梁县","大足县","荣昌县","璧山县","垫江县","武隆县","丰都县","城口县","梁平县","黔江区","奉节县","开县","云阳县","忠县","巫溪县","巫山县"]},
5:{ name:"安徽", val:"安徽", sub:["请选择","合肥","宿州","淮北","阜阳","蚌埠","淮南","滁州","马鞍山","芜湖","铜陵","安庆","黄山","六安","巢湖","池州","宣城","亳州"]},
6:{ name:"福建", val:"福建", sub:["请选择","福州","南平","三明","莆田","泉州","厦门","漳州","龙岩","宁德"]},
7:{ name:"甘肃", val:"甘肃", sub:["请选择","兰州","嘉峪关","金昌","白银","天水","酒泉","张掖","武威","庆阳","平凉","定西","陇南地区","玉门","敦煌"]},
8:{ name:"河北", val:"河北", sub:["请选择","石家庄","张家口","承德","秦皇岛","唐山","廊坊","保定","沧州","衡水","邢台","邯郸"]},
9:{ name:"黑龙江", val:"黑龙江", sub:["请选择","哈尔滨","齐齐哈尔","黑河","大庆","伊春","鹤岗","佳木斯","双鸭山","七台河","鸡西","牡丹江","绥化地区","大兴安岭地区"]},
10:{ name:"广东", val:"广东", sub:["请选择","广州","清远","韶关","河源","梅州","潮州","汕头","揭阳","汕尾","惠州","东莞","深圳","珠海","中山","江门","佛山","肇庆","云浮","阳江","茂名","湛江"]},
11:{ name:"广西", val:"广西", sub:["请选择","南宁","桂林","柳州","梧州","贵港","玉林","钦州","北海","防城港","百色","河池地区","贺州地区","崇左","凭祥","来宾"]},
12:{ name:"贵州", val:"贵州", sub:["请选择","贵阳","六盘水","遵义","毕节地区","铜仁地区","安顺"]},
13:{ name:"河南", val:"河南", sub:["请选择","郑州","三门峡","洛阳","焦作","新乡","鹤壁","安阳","濮阳","开封","商丘","许昌","漯河","平顶山","南阳","信阳","济源","周口","驻马店"]},
14:{ name:"湖北", val:"湖北", sub:["请选择","武汉","十堰","襄樊","荆门","孝感","黄冈","鄂州","黄石","咸宁","荆州","宜昌","随州","仙桃","天门","潜江","神农架林区"]},
15:{ name:"湖南", val:"湖南", sub:["请选择","长沙","张家界","常德","益阳","岳阳","株洲","湘潭","衡阳","郴州","永州","邵阳","怀化","娄底"]},
16:{ name:"海南", val:"海南", sub:["请选择","海口","三亚","琼山","文昌","琼海","万宁","东方","儋州","临高县","澄迈县","定安县","屯昌县","五指山"]},
17:{ name:"江苏", val:"江苏", sub:["请选择","南京","徐州","连云港","宿迁","淮阴","盐城","扬州","泰州","南通","镇江","常州","无锡","苏州","淮安"]},
18:{ name:"江西", val:"江西", sub:["请选择","南昌","九江","景德镇","鹰潭","新余","萍乡","赣州","上饶","抚州","宜春","吉安"]},
19:{ name:"吉林", val:"吉林", sub:["请选择","长春","白城","松原","吉林","四平","辽源","通化","白山","延边"]},
20:{ name:"辽宁", val:"辽宁", sub:["请选择","沈阳","朝阳","阜新","铁岭","抚顺","本溪","辽阳","鞍山","丹东","大连","营口","盘锦","锦州","葫芦岛"]},
21:{ name:"内蒙古", val:"内蒙古", sub:["请选择","呼和浩特","包头","乌海","赤峰","呼伦贝尔","兴安盟","锡林郭勒盟","乌兰察布","巴彦淖尔","阿拉善盟","鄂尔多斯","通辽"]},
22:{ name:"宁夏", val:"宁夏", sub:["请选择","银川","石嘴山","吴忠","固原"]},
23:{ name:"青海", val:"青海", sub:["请选择","西宁","海东地区"]},
24:{ name:"山东", val:"山东", sub:["请选择","济南","聊城","德州","东营","淄博","潍坊","烟台","威海","青岛","日照","临沂","枣庄","济宁","泰安","莱芜","滨州","菏泽"]},
25:{ name:"山西", val:"山西", sub:["请选择","太原","大同","朔州","阳泉","长治","晋城","忻州","吕梁","晋中","临汾","运城"]},
26:{ name:"陕西", val:"陕西", sub:["请选择","西安","延安","铜川","渭南","咸阳","宝鸡","汉中","榆林","商洛","安康"]},
27:{ name:"四川", val:"四川", sub:["请选择","成都","广元","绵阳","德阳","南充","广安","遂宁","内江","乐山","自贡","泸州","宜宾","攀枝花","巴中","达州","资阳","眉山","雅安"]},
28:{ name:"新疆", val:"新疆", sub:["请选择","乌鲁木齐","克拉玛依","石河子","喀什地区","阿克苏地区","和田地区","吐鲁番地区","哈密地区"]},
29:{ name:"西藏", val:"西藏", sub:["请选择","拉萨","那曲地区","昌都地区","林芝地区","山南地区","日喀则地区","阿里地区"]},
30:{ name:"云南", val:"云南", sub:["请选择","昆明","曲靖","玉溪","丽江","昭通","思茅","临沧地区","保山","西双版纳","大理"]},
31:{ name:"浙江", val:"浙江", sub:["请选择","杭州","湖州","嘉兴","舟山","宁波","绍兴","金华","台州","温州","丽水","衢州"]},
32:{ name:"香港", val:"香港", sub:["请选择","九龙城区","观塘区","深水埗区","黄大仙区","湾仔区","油尖旺区","离岛区","葵青区","西贡区","沙田区","屯门区","大埔区","荃湾区","元朗区","其它"]},
33:{ name:"澳门", val:"澳门", sub:["请选择","其它"]},
34:{ name:"台湾", val:"台湾", sub:["请选择","台北市","高雄市","基隆市","台中市","台南市","新竹市","嘉义市","北县","板桥市","宜兰县","宜兰市","桃园县","桃园市","新竹县","竹北市","苗栗县","苗栗市","台中县","丰原市","彰化县","彰化市","南投县","南投市","云林县","斗六市","嘉义县","太保市","台南县","新营市","高雄县","凤山市","屏东县","屏东市","澎湖县","马东市","台东县","台东市","花莲县","花莲市","金门县","连江县","其它"]},
35:{ name:"海外", val:"海外", sub:["请选择","其它"]},
length:36
};
展开全部
DropDownList控件到的UpdatePanel
“DropDownList1的”RUNAT =“服务器”的AutoPostBack =“真”OnSelectedIndexChanged =“ DropDownList1_SelectedIndexChanged“>
英寸CS写响应选择事件处理,绑定数据源,如保护无效DropDownList1_SelectedIndexChanged(对象发件人,EventArgs五)
{ BR />字符串DropDownList1.SelectedItem.Value.ToString strupclassID =();
DropDownList2.Visible = TRUE;
ddl_databindforLastclass(strupclassID);
.........
}
保护无效DropDownList2_SelectedIndexChanged的(对象发件人,EventArgs的E)
{
串DropDownList2.SelectedItem.Value.ToString strupclassid =();
。 .........
}
“DropDownList1的”RUNAT =“服务器”的AutoPostBack =“真”OnSelectedIndexChanged =“ DropDownList1_SelectedIndexChanged“>
英寸CS写响应选择事件处理,绑定数据源,如保护无效DropDownList1_SelectedIndexChanged(对象发件人,EventArgs五)
{ BR />字符串DropDownList1.SelectedItem.Value.ToString strupclassID =();
DropDownList2.Visible = TRUE;
ddl_databindforLastclass(strupclassID);
.........
}
保护无效DropDownList2_SelectedIndexChanged的(对象发件人,EventArgs的E)
{
串DropDownList2.SelectedItem.Value.ToString strupclassid =();
。 .........
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询