Question listing files

hepsi

Member
Joined
Mar 14, 2007
Messages
5
Programming Experience
1-3
I want to get all the files from my local directory
in my web page

the same code works fine and it returns all the files when i run the code on the local system but when i'm trying to do that online it gives me error.

the error is
"the path is not in legal form"
for the line
Dim files As String() = System.IO.Directory.GetFiles(path,".gif")
where is path is the path like(c:/images)

please can somebody help me
thank u
 
ASP.Net is server applications, the VB.Net code behind runs at server side. When a request is processed it returns Html to the browser which is then rendered at client side, this html may also contain script elements that is also processed at client side. To list client files you can use Javascript and the FileSystemObject.
 
Back
Top