473,666 Members | 2,386 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Net wprk.DownloadFi le("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 1276
Use a "content-disposition" header:

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

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Husam" <Hu***@discussi ons.microsoft.c omwrote in message
news:8F******** *************** ***********@mic rosoft.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.Net wprk.DownloadFi le("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***@discussi ons.microsoft.c omwrote in message
news:8F******** *************** ***********@mic rosoft.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.Net wprk.DownloadFi le("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***@discussi ons.microsoft.c omwrote in message
news:8F******** *************** ***********@mic rosoft.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.Net wprk.DownloadFi le("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
1947
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: application/x-gzip"); header("Content-disposition: filename: $filename"); header("Filename: $filename");
2
6162
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 the way the download transport is handled that this cannot "automatically" be done... upload progress meters exist, but not download. However, I've seen different theories on how it could be done if one knows the file size. Is anyone aware of a...
0
1501
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 download process works OK, it adds a few bytes to the file during the download, so a 46k file becomes 52k. I can still open the file using Winzip, but cannot open it using my active X extraction system (ActiveXZip from www.hdse.com). I get an error...
1
2246
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 via ftp. Now I'm using the http procedures to have my application download zip files from my website. Although the download process works OK, it adds a few bytes to the file during the download, so a 46k file becomes 52k. I can still open the file...
1
1165
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 have been running into out of memory issues with the ASP.NEt process becuase of the file download. We put the contents of the file on a HTTP reponse buffer and that means larger the file more memory ASP.NET
2
6948
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 attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
1
5720
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 ajax when i process PHP file i can open the download box to save the file. example: http://localhost/website/download.php?fid=1005 but when i am sending the fid (using a onclick event of a Image i am sending the ID to JS func ) through Ajax...
7
2635
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 download script, so customers on the website can download MP3s to their harddrive (rather than merely listen to it in their browsers):
1
47445
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 on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script. What You Need Any recent...
0
8440
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8355
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8866
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7381
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6191
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2006
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.