''生成下拉框
''参数说明:list——二维数组
'' selectedID——选中项的value
function dropDownList(list,selectedID)
Response.Write "<select name='IndustryID' id='IndustryID'>"
for j=0 to Ubound(list,2)
If list(0,j)=selectedID Then
''以下两句在 list(0,j),selectedID都等于20时也没有执行,为何???
Response.Write "<script language='javascript'>alert('ID:"&selectedID&" list:"&list(0,j)&"')</script>"
Response.Write "<option value='"&list(0,j)&"'& selected>"&list(1,j)&"</option>"
Else
Response.Write "<option value='"&list(0,j)&"'>"&list(1,j)&"</option>"
End if
'Response.Write "<script language='javascript'>alert('selectedID:"&&" list:"&list(0,j)&"')</script>"
next
Response.Write "<select>"
End function
asp的都忘差不多了, 不知道 If list(0,j)=selectedID Then这句是否要改成If list(0,j)==selectedID Then