473,385 Members | 1,730 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,385 software developers and data experts.

Downloadable files list

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
3 1773

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
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Boniface Frederic | last post by:
Hello, I want to set some files downloadable only by members with login and password. I use session to protect my .html and .php files, but I would like to know how to protect .zip files....
3
by: JJ | last post by:
Hi, I am writing a cart in ASP selling downloadable files. The files are stored on remote locations i.e. http://www.thisfilestore.com/file1.zip And have different extensions, i.e. they are not...
3
by: Stan Brown | last post by:
The W3C offers a CSS validator for download <http://jigsaw.w3.org/css-validator/DOWNLOAD.html> but the build seems to require a bunch of UNIX tools. Does anyone know of a downloadable CSS2...
9
by: Xah Lee | last post by:
is the Microsoft javascript doc downloadable? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/js56jsoriJScript.asp or, is there some other downloadable complete...
2
by: Charles A. Lackman | last post by:
Hello, I have a web site that plays mp3's and wav files, I am using a media player on the site which does not allow for downloading the media, but if you go to properties within the player and...
1
by: Hongbo | last post by:
Hi, We have a web site which needs user to login. After login, there are some files available for download on some pages. A typical link of such file is like this one:...
1
by: #5 | last post by:
// thats the sample code that i get in the .chm manual. Similar problem with the one with thousands // of html files . thats it , its not translating '<' to '<' etc <html> <head> <title>PHP...
14
by: lalit | last post by:
Hi there, Can some plz suggest me a way to show .ppt files on my website that can't be copied or saved by user using asp.net. any idea !!!! thankx
4
by: Jim Aikin | last post by:
I'd like to learn JavaScript while sitting in my easy chair with my laptop on my lap. Option 1: Buy a wireless router so I can access the plethora of online- only tutorials from anywhere in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.