DownLoad Process
am 14.01.2008 13:43:01 von Husam
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
Re: DownLoad Process
am 14.01.2008 13:59:25 von Kevin Spencer
You can use a "content-disposition" header to cause this behavior. See the
following MS KB article:
http://support.microsoft.com/kb/260519
"Husam" wrote in message
news:8F3FE18F-8E30-489C-BA34-8204BC154874@microsoft.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
Re: DownLoad Process
am 14.01.2008 13:59:50 von Kevin Spencer
Use a "content-disposition" header:
http://support.microsoft.com/kb/260519
--
HTH,
Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
"Husam" wrote in message
news:8F3FE18F-8E30-489C-BA34-8204BC154874@microsoft.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
Re: DownLoad Process
am 14.01.2008 15:14:50 von NoSpamMgbworld
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" wrote in message
news:8F3FE18F-8E30-489C-BA34-8204BC154874@microsoft.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