this.cnat_21.DataBind();this.cnat_21.Items.Insert(0,new ListItem("--请选择--",""));代码位置换一下
解决方案 »
- 一两年没上来了,上来先散分200,还认识我的人来顶一下
- 标准表达式中数据类型不匹配。
- txtAddNotes.Text = String.Empty;是什么意思?
- 这个问题能实现吗
- 请问各位一个很怪的问题呀.
- Adobe VS Microsoft, Flex Vs WPF, RIA 欢迎参加讨论
- 求助:现在用ASP.NET做电影网站,一般用什么方法来保证用户看电影的质量
- 怎么调用Oracle包里返回游标烈性的Function
- 再发,计算DataGrid某一列的总和!
- 帮忙将studio2010版本生成的文件修改下能在2005运行
- DataGrid中的更新与查询问题。。。
- 客户端调用服务器端函数问题
把selectedindex设为最后一个
{
SqlCommand cmc=new SqlCommand("select * from cnatjf",con);
SqlDataReader sdf=cmc.ExecuteReader();
this.cnat_21.DataSource=sdf;
this.cnat_21.DataTextField="mz";
this.cnat_21.DataValueField="jfxh";
this.cnat_21.DataBind();
sdf.Close();
this.cnat_21.Items.Insert(0,new ListItem("--请选择--",""));
}