read folder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 2 question

1) I have to read a folder which contains files and show all of the file on
my web page, how can I accomplish that?

2) is it possible to show them in a grid and allow the user to click on the
file name and have the files open?
 
1)
Take look at

System.IO.DirectoryInfo class and System.IO.FileInfo class.

2)
Once you get data, bind data with datagrid, Of cource, you need build link
button or hyperlink to hanle open file.

HTH

Elton Wang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top