Answer: To get a list of all sub directories from one location,we can use
GetDirectories method.
string[] Directories =
System.IO.Directory.GetDirectories(Server.MapPath("~/"));
Server.MapPath("~/") will simply return root folder of web application.
Asked In: Many Interviews |
Alert Moderator