Picture Page

D

Dave

I've been asked to put together a Intranet page that has Employee
information with a picture. I don't have an issue with using the
FileUpload. I do have an issue with the users that will be inputing
the information. Details aren't important.

How do you setup a Dropdown so that it returns the contents of the
image folder in the web structure? Everything I've found so far only
shows how to return the folder contents of the folder if it resides
locally.

Thanks in advance
 
D

Dave

So, would the examples work with the below?

System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(PATH);
FileInfo[] files = dir.GetFiles();
for (int i=0; i < files.Length; i++)
{
DropDownList1.Items.Add(files.Name);
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top