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

Your source code must surrounded with BB code tags. Read How to use bb code tags?

You should post your question in ASP.NET forum.

Web application uses root relative path and your images or files must be placed under the root of your web application.

You may use ~ root operator and MapPath() method.

Dim pth as String = MapPath("~/images")
 Dim s() as String = System.IO.Directory.GetFiles(pth,".gif")
 ...

images is a folder on my local system.
how can i access my local folder in my web page

Upload those files.

Upload those files.

I want to upload multiple files
can i do that using single browse button
so that i can select all the files at the same time and not select one by one to upload
because upload button allows us to upload only one file at a time

Use multiple input file tags or FileUpload controls in a page.

Use multiple input file tags or FileUpload controls in a page.

I have some 60 images
Is there no other way by which we can do that

Zip all 60 files and go for upload.

Zip all 60 files and go for upload.

I can upload the whole folder.
Thank u
But can u please tell me a way to unzip the uploded zip folder so that we can access the files/images .
We will need those files...
please help
thank u

I can upload the whole folder.
Thank u
But can u please tell me a way to unzip the uploded zip folder so that we can access the files/images .
We will need those files...
please help
thank u

Thanks.

Read this Article.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.