473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DOwnloadFilesFromSiteToLocalPC\ASp.net

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
Nov 30 '07 #1
4 952
On Nov 30, 2:38 pm, gh <g...@att.netwrote:
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
Nov 30 '07 #2
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


Alexey Smirnov wrote:
On Nov 30, 2:38 pm, gh <g...@att.netwrote:
>>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
Nov 30 '07 #3
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" wrote:
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


Alexey Smirnov wrote:
On Nov 30, 2:38 pm, gh <g...@att.netwrote:
>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
Nov 30 '07 #4
On Nov 30, 4:20 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.NoSpamMaam.comwrote:
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

"gh" wrote:
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
Alexey Smirnov wrote:
On Nov 30, 2:38 pm, gh <g...@att.netwrote:
>>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/art...052803-1.aspx- Hide quoted text -

- 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.
Dec 4 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.