当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: cisco2621上用什么命令查看已连接到路由器的ip呢?????或者是正在连接的??? ......
    摘要: 页面中的表单在提交后,以后每次刷新此页面都会重新提交一次,怎么清除提交过的表单内容呢? ......


怎样实现把表中的一个字段的值绑定到dropdownlist,并通过选择来选取

怎样实现把表中的一个字段的值绑定到dropdownlist,并通过选择来选取?  
  一定要用ArrayList吗?

NO.1   作者: ameng_2002

可以直接用DataReader,比如  
  SqlConnection   con=new   SqlConnection("...");  
  SqlCommand   cmd=new   SqlCommand("select   id,name   from   yourtable",con);  
  SqlDataReader   dataReader=cmd.ExecuteReader();  
  DropDownList1.DataSource=dataReader;  
  DropDownList1.DataTextField="name";  
  DropDwonList1.DataValueField="id";  
  DropDwonList1.DataBind();  
  con.Close();


 ·borland c# builder     »显示摘要«
    摘要: http://www.borland.com/csharpbuilder/demo/csharpbuilderdemoshort.htm 真是亲切啊!!!期待中…… ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE