标题:DropDownList下拉框显示数据问题!!!
取消只看楼主
shqi8866
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2008-6-24
 问题点数:0 回复次数:1 
DropDownList下拉框显示数据问题!!!
string connString = "server=(local);uid=sa;pwd=;database=Northwind";   
            string cmdText = "select * from ZI ";   
            SqlConnection conn = new SqlConnection(connString);   
            SqlDataAdapter adp = new SqlDataAdapter(cmdText,conn);   
            DataSet ds = new DataSet();   
            adp.Fill(ds);   
                            DropDownList1.DataSource = ds;   
            DropDownList1.DataTextField = "Address_name";   
            DropDownList1.DataValueField = "Relegation_ID";   
            DropDownList1.DataBind();
我想要显示Address_name的字段,不过要符合Relegating_ID为空的条件,应该怎么判断

请高手帮忙下!!!
搜索更多相关主题的帖子: DropDownList 数据 
2008-09-17 23:38
shqi8866
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2008-6-24
得分:0 
请高手速来帮忙啊!!!
2008-09-18 14:54



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-233720-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.023829 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved