Atitit.ui控件---下拉菜单选择控件的实现select html
1. 调用& model的实现 1
2. -----select.jsp------ 1
1. 调用& model的实现
Proj.vod2
List li=new ArrayList();
Map m=new HashMap ();
m.put("lab","爱情");
m.put("v","1");
li.add(m);
DropDownList DropDownList1=new DropDownList();
DropDownList1.DataSource = li;
DropDownList1.DataValueField = "v";
DropDownList1.DataTextField = "lab";
DropDownList1.DataBind();
session.setAttribute("ddl1",DropDownList1);
%>
作者:: 老哇的爪子 Attilax 艾龙, EMAIL:1466519819@qq.com
2. -----select.jsp------
DropDownList ddl= (DropDownList) session.getAttribute(request.getParameter("DropDownListId") );
List li=ddl.DataSource;
%>
for (Object object : li) {
Map m=(Map) object;
%>
ASP.NET中下拉列表数据绑定的问题。_百度知道.htm