G
Guest
Hi,
I wan to fill a dropdownlist with the filenames in a certain directory, i
use the following statement for retrieving the files:
DirectoryInfo di = new
DirectoryInfo("C:\\Inetpub\\wwwroot\\ASPNET\\Documents");
FileInfo[] rgFiles = di.GetFiles("*.doc");
foreach(FileInfo fi in rgFiles)
{
return (fi.Name);
}
but how can I connect this with the dropdownlist, i need to see there the
file names.
thanks in advance,
Remco
I wan to fill a dropdownlist with the filenames in a certain directory, i
use the following statement for retrieving the files:
DirectoryInfo di = new
DirectoryInfo("C:\\Inetpub\\wwwroot\\ASPNET\\Documents");
FileInfo[] rgFiles = di.GetFiles("*.doc");
foreach(FileInfo fi in rgFiles)
{
return (fi.Name);
}
but how can I connect this with the dropdownlist, i need to see there the
file names.
thanks in advance,
Remco