By using this code
string source = @"C:\Untitled-1.html";
string dest = Server.MapPath("~/");
string filename = "Untitled-1.html";
File.Copy(source, dest + filename + (new FileInfo(source).Extension));
string source = @"C:\Untitled-1.html";
string dest = Server.MapPath("~/");
string filename = "Untitled-1.html";
File.Copy(source, dest + filename + (new FileInfo(source).Extension));
No comments:
Post a Comment