标签:.com extension rtu datetime combine igp com item 目录
FileUpload FileUpload1 =(FileUpload)ListView1.InsertItem.FindControl("FileUpload1"); string virtualPath = "~/GigPics/"; string physicalPath = Server.MapPath(virtualPath); string fileName = DateTime.Now.ToString(); string extention = System.IO.Path.GetExtension(FileUpload1.FileName); //存储文件到服务器 FileUpload1.SaveAs(System.IO.Path.Combine(physicalPath, fileName + extention)); //设置虚拟目录的路径 myPicture.ImageUrl = virtualPath + fileName + extention;
标签:.com extension rtu datetime combine igp com item 目录
原文地址:http://www.cnblogs.com/zqyo2000z/p/7397516.html