摘要: string strNewName = System.Guid.NewGuid().ToString(); strNewName += this.FileUpload1.FileName.Substring(FileUpload1.FileName.LastIndexOf('.')); string filePath = this.FileUpload1.PostedFile.FileName; System.Drawing.Image oldImage, newImage; System.IO.S... 阅读全文
posted @ 2012-09-04 16:05 yxyht 阅读(394) 评论(0) 推荐(0) 编辑
摘要: protected void Button1_Click(object sender, EventArgs e) { string driPath = "~/WebApplication3/" + DateTime.Now.Year.ToString() + "/" + DateTime.Now.Month.ToString() + "/"; string phyPath = Server.MapPath(driPath); if (!Directory.Exists(phyPath)) {... 阅读全文
posted @ 2012-09-04 16:03 yxyht 阅读(250) 评论(0) 推荐(0) 编辑