Thread: Slide Show
View Single Post
Old Apr 2nd, 2008, 3:35 PM   #7
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 354
Rep Power: 3 King is on a distinguished road
Re: Slide Show

Thanks for the info guys. I have chosen to use the Ajax Slide Show control.

I have one more question. In ASP, what is the best way to get a list of files from a directory? This is how I am doing it currently:
string directory = "c:/Inetpub/wwwroot/MyWebsite/test_images/";
DirectoryInfo di = new DirectoryInfo(directory);
foreach (FileInfo oFile in di.GetFiles())
{
	string fileName = oFile.Namel
	// ...
}
The problem with this is that it is relying on the filesystem and I do not know how the hosting provider will have their server setup. Is there a way where I can search the IIS virtual directory and just pass in "~/test_images" as the directory string?
__________________
I am Addicted to Linux!
King is offline   Reply With Quote