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

DownLoad Process

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.