62,263
社区成员
发帖
与我相关
我的任务
分享
string fullFileName = this.FileUpload1.PostedFile.FileName;
string fileName = fullFileName.Substring(fullFileName.LastIndexOf("\\") + 1);
if (!string.IsNullOrEmpty(fullFileName))
{
this.FileUpload1.PostedFile.SaveAs(Server.MapPath("../Doc/" + ID) + "\\" + fileName);
}