这是javascript函数
function changeASort(DDLA,DDLC) {
var id = DDLA;
var id2 = DDLC;
alert(id);
alert(id2);
}这是asp.net的部分函数
DropDownList DDListSort = new DropDownList();
DDListSort.ID = "DDListSort" + ControlName;
string DDListASortID = "DDListASort" + ControlName;
DDListSort.Attributes.Add("onchange", "changeASort(" + DDListSort.ID + "," + DDListASortID + ");");问题:
触发changeASort函数,可是DDLA的值不是等于DDListSort.ID ,而是等于object
function changeASort(DDLA,DDLC) {
var id = DDLA;
var id2 = DDLC;
alert(id);
alert(id2);
}这是asp.net的部分函数
DropDownList DDListSort = new DropDownList();
DDListSort.ID = "DDListSort" + ControlName;
string DDListASortID = "DDListASort" + ControlName;
DDListSort.Attributes.Add("onchange", "changeASort(" + DDListSort.ID + "," + DDListASortID + ");");问题:
触发changeASort函数,可是DDLA的值不是等于DDListSort.ID ,而是等于object
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货