How do I get number of Files from a folder using ASP.NET with C#?
System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo("SourcePath"); int count = dir.GetFiles().Length;
You can use this.