1 string savepath="虚拟目录路径"
2 string name=Guid.NewGuid().ToString()+Path.GetExtension(this.FileAttachment1.PostedFile.FileName.ToString());//更改后的文件名
3 string savepath1=Server.MapPath(savepath)+name;//保存文件的实际路径
FileAttachment1.PostedFile.SaveAs(savepath1);//保存文件
2 string name=Guid.NewGuid().ToString()+Path.GetExtension(this.FileAttachment1.PostedFile.FileName.ToString());//更改后的文件名
3 string savepath1=Server.MapPath(savepath)+name;//保存文件的实际路径
FileAttachment1.PostedFile.SaveAs(savepath1);//保存文件
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货