if (File.Exists(temppath)) { if (File.Exists(Server.MapPath("Documents") + "/" + dt.Rows[0]["ImagePath"].ToString())) { File.Delete(Server.MapPath("Documents") + "/" + dt.Rows[0]["ImagePath"].ToString()); } File.Copy(temppath, Server.MapPath("Documents") + "/" + dt.Rows[0]["ImagePath"].ToString()); }
Server.MapPath("Documents")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)