473,324 Members | 2,501 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,324 software developers and data experts.

DownLoad Process

Hi EveryBody:

I am working in ASP.Net 2.0 by Vb.Net the code behaind, My project Is a web
site that allow the user to upload and download file to the web site. I have
database that will save all the uploaded files by the user.

My question Is :

When you go to web site you find link that allow you to download that file
and when you click that link the poup up window show that direct and ask you
about the location that you want to download the file.

How can I make this process I tried to use the following Method

My.Computer.Netwprk.DownloadFile("The URL","The destination path")

but did not work.

Any help or redirection about download file from the web will be appreciated

regard's

Husam
Jan 14 '08 #1
3 1257
Use a "content-disposition" header:

http://support.microsoft.com/kb/260519

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Husam" <Hu***@discussions.microsoft.comwrote in message
news:8F**********************************@microsof t.com...
Hi EveryBody:

I am working in ASP.Net 2.0 by Vb.Net the code behaind, My project Is a
web
site that allow the user to upload and download file to the web site. I
have
database that will save all the uploaded files by the user.

My question Is :

When you go to web site you find link that allow you to download that file
and when you click that link the poup up window show that direct and ask
you
about the location that you want to download the file.

How can I make this process I tried to use the following Method

My.Computer.Netwprk.DownloadFile("The URL","The destination path")

but did not work.

Any help or redirection about download file from the web will be
appreciated

regard's

Husam

Jan 14 '08 #2
You can use a "content-disposition" header to cause this behavior. See the
following MS KB article:

http://support.microsoft.com/kb/260519
"Husam" <Hu***@discussions.microsoft.comwrote in message
news:8F**********************************@microsof t.com...
Hi EveryBody:

I am working in ASP.Net 2.0 by Vb.Net the code behaind, My project Is a
web
site that allow the user to upload and download file to the web site. I
have
database that will save all the uploaded files by the user.

My question Is :

When you go to web site you find link that allow you to download that file
and when you click that link the poup up window show that direct and ask
you
about the location that you want to download the file.

How can I make this process I tried to use the following Method

My.Computer.Netwprk.DownloadFile("The URL","The destination path")

but did not work.

Any help or redirection about download file from the web will be
appreciated

regard's

Husam

Jan 14 '08 #3
What is not working?

1. The pop up is not showing up and the file is opening?
Follow Kevin's advice

2. Not working at all, meaning "not opening", "not downloading", etc.?

If not, then are you getting a timeout or an error message of any kind? Or,
is it simply doing nothing? Are you typing Network as Netwprk, as in your
example?

I need more information to go on here if your experience falls under #2.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"Husam" <Hu***@discussions.microsoft.comwrote in message
news:8F**********************************@microsof t.com...
Hi EveryBody:

I am working in ASP.Net 2.0 by Vb.Net the code behaind, My project Is a
web
site that allow the user to upload and download file to the web site. I
have
database that will save all the uploaded files by the user.

My question Is :

When you go to web site you find link that allow you to download that file
and when you click that link the poup up window show that direct and ask
you
about the location that you want to download the file.

How can I make this process I tried to use the following Method

My.Computer.Netwprk.DownloadFile("The URL","The destination path")

but did not work.

Any help or redirection about download file from the web will be
appreciated

regard's

Husam

Jan 14 '08 #4

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

Similar topics

5
by: php newbie | last post by:
Hello, I have a php script that allows users to download files they selected earlier in the session. I use the following code snippet to do this: ## set up headers header("Content-type:...
2
by: Julia Briggs | last post by:
Hello, I've read quite a bit of discussion on different approaches of how to create a download progress meter that can be implemented into a Web site. I understand that by the very nature of...
0
by: Owen Jenkins | last post by:
I've been using Dev's fantastic InetTransferLib to upload and download files via ftp. Now I'm using the http procedures to have my application download zip files from my website. Although the...
1
by: Owen Jenkins | last post by:
Reposting this message from last week since I have not had a reply so far. Hopefully someone will have an idea? --- I've been using Dev's fantastic InetTransferLib to upload and download files...
1
by: ShikariShambu | last post by:
Hi All, We have numerous instance where we allow the user to download files from our web site. We don't allow them to open it within browser window. They have to save it locally. Of late we...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
1
ak1dnar
by: ak1dnar | last post by:
Hi i need to download some files (.pdf/.doc) from web root. I am using a ajax script to send the file IDs and PHP will process it and it should generate the save as dialog box. Currently without...
7
by: lawrence k | last post by:
I've got a music studio for a client. Their whole studio is run with Macintosh computers. Macintosh computers allow file names to have open white spaces, such as "animal hospital.mp3". I have a...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.