Someone requested for help on displaying all the files in a directory with a Hyperlink to download it, and this is in reponse to that!
It quiet simple! We use the DirectoryInfo and FileInfo classes of System.IO namespace.
System.IO.DirectoryInfo di=new System.IO.DirectoryInfo("C:\\Inetpub\\wwwroot\\WebApplication2"); |