Atitit.ui控件-下拉菜单选择控件的实现select html_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:42:53
Original
1291 people have browsed it

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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!