摘要: 去全部集合 using (dat0216DataContext con = new dat0216DataContext()) { //LoList 是转换成 List集合 List<Users> ulist=con.Users.ToList(); } 条件查询 using (dat0216Data 阅读全文
posted @ 2017-06-04 17:25 天晴微笑 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1.文件上传的页面2.上传文件要保存的文件夹 1.只要将文件传上来就行 //1、获取要上传的文件,并且知道要上传到服务器的路径 string s = "Uploads/aaa.txt"; //2、生成绝对路径 string path = Server.MapPath(s); //3、上传 FileU 阅读全文
posted @ 2017-06-04 16:27 天晴微笑 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 绑定数据 if (!IsPostBack) { using (UsersDataContext con = new UsersDataContext()) { Repeater1.DataSource = con.Users.ToList(); Repeater1.DataBind(); } } 后 阅读全文
posted @ 2017-06-04 16:17 天晴微笑 阅读(250) 评论(0) 推荐(0) 编辑