2024年4月30日发(作者:)

中:

-----------------------------------------------------------------------------------------------

AjaxPro.2"/>

-----------------------------------------------------------------------------------------------

javascript脚本:

-----------------------------------------------------------------------------------------------

----------------------------------------------------后台-----------------------------------------------------------

Page_Load中:

//必要的

erTypeForAjax(typeof(AddPro));

----------------------------------------------------后台---------------------------------------------------------

[thod]

public DataSet getNextClass(string key, string stid, string tb, string bskeyid, string bsid)

{

//因为不希望页面可以知道字段名称 所以 as txt,id as vol 如果是sql ser 可以用 =

//页面获取的 列名称 必须跟这个一同样 而且区分大小写 一般都是这个地方容

易疏忽了

//所以二级分类没变化

try

{

return BLL_t(key,stid,tb,bskeyid,bsid);

}

catch

{

//throw;

return null;

}

}

private void BindDc()

{

//第一个

urce = BLL_ClassModel();

xtField = "Pro_BigClass1";

lueField = "ID1";

nd(); //

key,stid,tb,bskeyid,bsid

if (urce != null) ("onchange",

"showNext('ddl2','Pro_SmallClass','ID','Tb_Pro_SmallClass','Pro_BigClassID',s[selecte

dIndex].value);");

//可以先判断

//第二个

urce =

BLL_llClassByID(32());

xtField = "Pro_SmallClass1";

lueField = "ID1";

nd();

if (urce != null) ("onchange",

"showNext('ddl3','Pro_ThreeClass','ID','Tb_Pro_ThreeClass','Pro_SmallID',s[selectedIn

dex].value);");

//第三个

urce =

BLL_eeClassByID(32());

xtField = "Pro_ThreeClass1";

lueField = "ID1";

nd();

}

--------------------------------------------------------------------------------------------------------------------