DOwnloadFilesFromSiteToLocalPC\ASp.net

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
 
G

Guest

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
 
G

gh

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
 
P

Peter Bromberg [C# MVP]

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
 
G

Guest

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.
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top