By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,383 Members | 2,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,383 IT Pros & Developers. It's quick & easy.

Downloadable files list

P: n/a
HI,
I'm trying to create an aspx page that lists all files
that an user can download from a site simply clicking on
the link.
There is any example on the web?
Thanks,
Fabrizio
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

Hi Fabrizio,

Thanks for posting in this group.
Can you explain this more clear?
You can use System.Net.WebClient to download files from a web site.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "Fabrizio" <fm******@gestionescorte.it>
| Sender: "Fabrizio" <fm******@gestionescorte.it>
| Subject: Downloadable files list
| Date: Wed, 12 Nov 2003 22:42:33 -0800
| Lines: 7
| Message-ID: <08****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcOpsVED8rc6JfY+TOynbaFUXeI6UQ==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:198916
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| HI,
| I'm trying to create an aspx page that lists all files
| that an user can download from a site simply clicking on
| the link.
| There is any example on the web?
| Thanks,
| Fabrizio
|

Nov 15 '05 #2

P: n/a
Hi Jeffrey,
thanks for replying.
What i'm trying to do is to redirect an internet user on
a page where he can have a list of files available to
open or download on that site. It's like a dir or LS of
the directory.
Thanks,
Fabrizio
-----Original Message-----

Hi Fabrizio,

Thanks for posting in this group.
Can you explain this more clear?
You can use System.Net.WebClient to download files from a web site.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Fabrizio" <fm******@gestionescorte.it>
| Sender: "Fabrizio" <fm******@gestionescorte.it>
| Subject: Downloadable files list
| Date: Wed, 12 Nov 2003 22:42:33 -0800
| Lines: 7
| Message-ID: <08****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcOpsVED8rc6JfY+TOynbaFUXeI6UQ==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:198916| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| HI,
| I'm trying to create an aspx page that lists all files
| that an user can download from a site simply clicking on| the link.
| There is any example on the web?
| Thanks,
| Fabrizio
|

.

Nov 15 '05 #3

P: n/a

Hi Fabrizio,

If you want to list all the hyperlinks(<a> flag) on the web site, I think
you can use html DOM model to retrive this.
Here is a sample of getting all the <a> flags through C#:
http://msdn.microsoft.com/library/de...us/dv_vstechar
t/html/vsgrfwalkthroughaccessingdhtmldomfromc.asp

If you want to download all the avaiable files of site's root directory,
this may can not get done. Many sites will refuse this request.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "Fabrizio" <fm******@gestionescorte.it>
| Sender: "Fabrizio" <fm******@gestionescorte.it>
| References: <08****************************@phx.gbl>
<8y**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Downloadable files list
| Date: Wed, 12 Nov 2003 23:46:51 -0800
| Lines: 59
| Message-ID: <0a****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOpukyeNiv6n/KITuCX12WLzfE/Qg==
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:198927
| NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hi Jeffrey,
| thanks for replying.
| What i'm trying to do is to redirect an internet user on
| a page where he can have a list of files available to
| open or download on that site. It's like a dir or LS of
| the directory.
| Thanks,
| Fabrizio
| >-----Original Message-----
| >
| >Hi Fabrizio,
| >
| >Thanks for posting in this group.
| >Can you explain this more clear?
| >You can use System.Net.WebClient to download files from
| a web site.
| >
| >Best regards,
| >Jeffrey Tan
| >Microsoft Online Partner Support
| >Get Secure! - www.microsoft.com/security
| >This posting is provided "as is" with no warranties and
| confers no rights.
| >
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "Fabrizio" <fm******@gestionescorte.it>
| >| Sender: "Fabrizio" <fm******@gestionescorte.it>
| >| Subject: Downloadable files list
| >| Date: Wed, 12 Nov 2003 22:42:33 -0800
| >| Lines: 7
| >| Message-ID: <08****************************@phx.gbl>
| >| MIME-Version: 1.0
| >| Content-Type: text/plain;
| >| charset="iso-8859-1"
| >| Content-Transfer-Encoding: 7bit
| >| X-Newsreader: Microsoft CDO for Windows 2000
| >| Thread-Index: AcOpsVED8rc6JfY+TOynbaFUXeI6UQ==
| >| X-MimeOLE: Produced By Microsoft MimeOLE
| V5.50.4910.0300
| >| Newsgroups: microsoft.public.dotnet.languages.csharp
| >| Path: cpmsftngxa06.phx.gbl
| >| Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.languages.csharp:198916
| >| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| >| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| >|
| >| HI,
| >| I'm trying to create an aspx page that lists all files
| >| that an user can download from a site simply clicking
| on
| >| the link.
| >| There is any example on the web?
| >| Thanks,
| >| Fabrizio
| >|
| >
| >.
| >
|

Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.