摘要: /// /// 根据路径读取文件,支持远程文件,本地文件 /// /// /// private System.Drawing.Image GetImage(string path) { if (path.StartsWith("http")) { System.Net.WebRe... 阅读全文
posted @ 2012-04-24 15:31 low_key 阅读(2044) 评论(0) 推荐(0)
摘要: public void downloadfile(string s_fileName) { try { HttpContext.Current.Response.ContentType = "application/ms-download"; string s_path = HttpContext.... 阅读全文
posted @ 2012-04-24 15:30 low_key 阅读(170) 评论(0) 推荐(0)
摘要: if (myFile.PostedFile != null) { string folderName = (string)Session["uid"]; //定义一些变量 string nam = myFile.PostedFile.FileName; string fileName = DateT... 阅读全文
posted @ 2012-04-24 15:29 low_key 阅读(174) 评论(0) 推荐(0)