摘要: (1)下拉添加“==请选择==”解决方法:1.protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataSet ds = new DataSet(); string tablename = "department_Info"; ds = GetDataSet(ds, tablename); this.ddl_post.Da... 阅读全文
posted @ 2012-05-15 22:26 【唐】三三 阅读(897) 评论(0) 推荐(0)
摘要: 问题: 在VS中用dropdownlist控件绑定数据,浏览时却在控件里显示System.Data.DataRowView,而不是要显示的数据,代码如下:public static DataSet GetDataSet(DataSet ds, string tablename) { string s = "select departmentName from department_info"; string con = ConfigurationManager.ConnectionStrings["CodematicConnectionString"]. 阅读全文
posted @ 2012-05-15 20:55 【唐】三三 阅读(1583) 评论(0) 推荐(0)