DOwnloadFilesFromSiteToLocalPC\ASp.net

  • Thread starter Thread starter gh
  • Start date Start date
G

gh

I am looking for a control that will allow the user to click a link,
that will open up and display files and subfolders, from a predeifined
rppt folder. I don' t want the user to be able to navigate outside of
the root folder and only be able to download files to their PC. Does
anyone know of a control like this?

TIA
 
I am looking for a control that will allow the user to click a link,
that will open up and display files and subfolders, from a predeifined
rppt folder. I don' t want the user to be able to navigate outside of
the root folder and only be able to download files to their PC. Does
anyone know of a control like this?

TIA

All what you need is to make a page with the list of files on it.

An example: http://aspnet.4guysfromrolla.com/articles/052803-1.aspx
 
Alexey:

The cilent wants it in a treeview, so the user can expand the subfolders
and drag and drop the files to there local machine.

Thanks
 
gh,

you can create a treeview and display the files in expandable treenodes, you
just need to iterate all the subfolders and their contents and bring them
back in a collection or other structure (like a dataset) that can be
databound to the treeview control.

Unfortunately, the only way you will ever get drag-drop functionality for
the downloads is with an ActiveX control. The users will need to download a
selected file by clicking on a hyperlink that points to the file on the
webserver.

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com
 
gh,

you can create a treeview and display the files in expandable treenodes, you
just need to iterate all the subfolders and their contents and bring them
back in a collection or other structure (like a dataset) that can be
databound to the treeview control.

Unfortunately, the only way you will ever get drag-drop functionality for
the downloads is with an ActiveX control. The users will need to download a
selected file by clicking on a hyperlink that points to the file on the
webserver.

--Peter
"Inside every large program, there is a small program trying to get out."http://www.eggheadcafe.comhttp://petesbloggerama.blogspot.comhttp://www.blogmetafinder.com






- Show quoted text -

gh, I agree with Peter and in addition, I see no advantage having it.
Drag-n-drop is not as common on the web as on desktop environments.
 
Back
Top