标签:
if (FileUpload1.HasFile) { string filenames = FileUpload1.PostedFile.FileName; string server_path = "images/"; string ab_path = Server.MapPath(server_path); if (!Directory.Exists(ab_path)) { Directory.CreateDirectory(ab_path); } if (File.Exists(ab_path + filenames)) { } FileUpload1.SaveAs(ab_path + filenames); }
标签:
原文地址:http://www.cnblogs.com/mengluo/p/5976815.html