zoukankan
html css js c++ java
读出数据库里面的数据,来 绑定列表框 DropDownList1
string
ss_sql
=
"
select isnull(genre_id,0) genre_id from ddw_member_info where member_id='
"
+
this
.Page.Session[
"
member_id
"
].ToString()
+
"
'
"
;
string
default_selected
=
ddw.fn_execlquerysql(ss_sql);
//
1
this
.DropDownList1.DataSource
=
ddw.dataset.Tables[
0
].DefaultView;
this
.DropDownList1.DataTextField
=
"
genre_desc
"
;
this
.DropDownList1.DataValueField
=
"
genre_id
"
;
this
.DropDownList1.DataBind();
this
.DropDownList1.Items.Add(
new
ListItem(
"
请选择
"
,
"
0
"
));
this
.DropDownList1.Items.FindByValue(default_selected).Selected
=
true
;
//
绑定
查看全文
相关阅读:
Cornfields POJ
二维RMQ模板
降雨量 HYSBZ
Frequent values UVA
UVA
Argus UVALive
关于二分图有向边和无向边问题探讨
Guardian of Decency UVALive
SAM I AM UVA
【062新题】OCP 12c 062出现大量新题-15
原文地址:https://www.cnblogs.com/yamajia/p/540906.html
最新文章
线程池汇总
为什么InnoDB使用索引时不用锁表,可以锁行,而MyIsam则只锁表
设计抗住千万级流量的架构思路
插入500万条8位随机唯一数字串
length() size()
字符加上'0'等于ascii码值48, 不加引号0等于数值0
格式化字符串
n 个数 最大数 最小数 INF的使用
8 八进制
02-线性结构3. Pop Sequence
热门文章
03-树1. List Leaves
hdu 1000-1099计划(31)
00-自测3. 数组元素循环右移问题
hdu 1237 简单计算器 栈
Nth Largest Value
zoj 2109 FatMouse' Trade
01-2. Maximum Subsequence Sum
00-自测2. 素数对猜想
01-1. 最大子列和问题
Interviewe HDU
Copyright © 2011-2022 走看看