2010年12月31日
摘要: aspx页面代码aspx.cs后台代码DropDownList读取表格里的东西时候得记得用DropDownList1.DataTextField设置要读取的列 阅读全文
posted @ 2010-12-31 18:22 墟零 阅读(13420) 评论(0) 推荐(2) 编辑
摘要: 在Asp.Net的cs后置文件中不能直接用控件ID来操作数据绑定控件中的子控件,必须用FindControl找到控件才能操作。 //查找Repeater中的子控件 protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e) { // e.Item.ItemType 为当前行的类型 if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { // 找到ID为btnDele 阅读全文
posted @ 2010-12-31 14:33 墟零 阅读(1870) 评论(0) 推荐(0) 编辑