protected bool IsFileExist(string fileName) { DirectoryInfo di=new DirectoryInfo (Server.MapPath("ProductThumbnails")); FileInfo[] files=di.GetFiles(); foreach (FileInfo file in files) { if (file.Name==fileName) { return true; } } return false; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)