DropDownList
dd
=
new
DropDownList
();
Hashtable
mycountries
=
New
Hashtable
();
mycountries
.
Add
(
"N"
,
"Norway"
);
mycountries
.
Add
(
"S"
,
"Sweden"
);
mycountries
.
Add
(
"F"
,
"France"
);
mycountries
.
Add
(
"I"
,
"Italy"
);
dd
.
DataSource
=
mycountries
;
dd
.
DataValueField
=
"Key"
;
dd
.
DataTextField
=
"Value"
;
dd
.
DataBind
();
DropDownList
最新推荐文章于 2021-06-15 14:13:41 发布