Step 1. Create a Website using ASP.NET Web Applicaiton
Step 2. Add a DropDownList control to the default form.
Step 3. On the page load event handler, write the code after adding using System.IO; namespace. This below code uses the Directory class and its GetDirectories method that returns a list of all directories in a drive. You can change your drive
foreach (var folder in Directory.GetDirectories(@"E:\"))
{
DropDownList1.Items.Add(folder.ToString().Replace(@"E:\",""));
}
Run your application to get list of all folders.