摘要: 废话不多说了,我就直接上代码了。。 以下是cs代码: 1 //下拉绑定 2 void autoOldbind() 3 { 4 this.DropDownList1.DataSource = OldBLL.QueryAll(); 5 this.DropDownList1.DataTextField = "OldName"; 6 this.DropDownList1.DataValueField = "ID"; 7 this.DropDownList1.DataBin... 阅读全文
posted @ 2013-05-19 13:01 欢乐谷 阅读(499) 评论(1) 推荐(0)
摘要: 今天做项目的时候,用js获得了勾选的checkbox放在了hiddenfile里,然而hiddenfile的值变成了类似:“1,1,1,3,3,2,4,5,5,5”,后台获取的时候,只保留不重复的数字,于是想了一想;直接上代码了。//string strText = "1334677999";实现无重复 public static string qu(string lab) { string strResult = string.Empty; for (int intIdx = 0; intIdx < lab.Lengt... 阅读全文
posted @ 2013-04-16 00:18 欢乐谷 阅读(210) 评论(3) 推荐(0)