Retrieving file names from a web directory
I have a web server that has a directory containing xml files.
I want to return to a GUI a list of the URLs for the files so that the user can select a xml file to load.
How on earth do you do it? any ideas? or even just the name of the class I should be using.
Re: Browsing file in a web directory
Use Directory.GetFiles() to get all of the file names under that directory and then concatenate the web server root directory and each file name (It depends on where your directory is) to get the urls.
Leo
Re: Browsing file in a web directory
ok, sorry.
I forgot to say the application will not be running on the same network so that ain't gonna work.