摘要:
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... 阅读全文
摘要:
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)) {... 阅读全文