aspdotnetuser
Programmer
Hi,
How can I read file names from a folder to allow users to select a file name?
I'm guessing the code would look something like:
[blue]int FileNum = File.Open(@"c:\DinerDocs\SavedEmailTemplates\", FileMode.Open).Length;
(while FileNum > 0){[/blue]
[red]//Add filenames to dropdown list
//Get filename[/red]
[blue]DropDownList1.Items.Add(FileName.ToString());
}[/blue]
How can I read file names from a folder to allow users to select a file name?
I'm guessing the code would look something like:
[blue]int FileNum = File.Open(@"c:\DinerDocs\SavedEmailTemplates\", FileMode.Open).Length;
(while FileNum > 0){[/blue]
[red]//Add filenames to dropdown list
//Get filename[/red]
[blue]DropDownList1.Items.Add(FileName.ToString());
}[/blue]