String patha= String.Format(@"{0}\{1}" ,Server.MapPath("images"),"2.jpg"); if (System.IO.File.Exists(patha)) { System.IO.File.Delete(patha); }
hello used this <pre> string path = Server.MapPath("~/images") + "\\" + 2.jpg; if (File.Exists(path)) { System.IO.File.Delete(path); } this would work fine because i alkways used it in my live project <b>if my ans is not gives any help you please give me comments</b></pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)