473,785 Members | 2,607 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create a temporary download link?

Hi,

Is there a way to create a temporary download link and to know when the
client has finished downloading the file?

Thanks in advanced,

Asaf
Nov 18 '05 #1
4 7350
>
Is there a way to create a temporary download link and to know when the
client has finished downloading the file?


I use the following technique for Web reporting.

Create the file with a GUID in the file name so thats its unique, and point
the link at it.

Every time someone uses that report I delete any other reports that are
older than 30 mins.
Nov 18 '05 #2
Thanks Josh for your help.

Is there a way to know when the client has finished the download process?

"Josh" <so*****@micros oft.com> wrote in message
news:Oa******** ******@TK2MSFTN GP15.phx.gbl...

Is there a way to create a temporary download link and to know when the
client has finished downloading the file?


I use the following technique for Web reporting.

Create the file with a GUID in the file name so thats its unique, and
point
the link at it.

Every time someone uses that report I delete any other reports that are
older than 30 mins.

Nov 18 '05 #3
You could also stream the file content (using Response.WriteF ile). This way
the file doesn't have to be at a reachable location plus you can still have
some code after streaming the file...

You'll have also to set the approprioate contenttype...

Patrice

--

"Asaf" <as****@hotmail .com> a écrit dans le message de
news:Oa******** *****@tk2msftng p13.phx.gbl...
Thanks Josh for your help.

Is there a way to know when the client has finished the download process?

"Josh" <so*****@micros oft.com> wrote in message
news:Oa******** ******@TK2MSFTN GP15.phx.gbl...

Is there a way to create a temporary download link and to know when the
client has finished downloading the file?


I use the following technique for Web reporting.

Create the file with a GUID in the file name so thats its unique, and
point
the link at it.

Every time someone uses that report I delete any other reports that are
older than 30 mins.


Nov 18 '05 #4
Thanks for your help :)

"Patrice" <no****@nowhere .com> wrote in message
news:uZ******** ******@TK2MSFTN GP14.phx.gbl...
You could also stream the file content (using Response.WriteF ile). This
way
the file doesn't have to be at a reachable location plus you can still
have
some code after streaming the file...

You'll have also to set the approprioate contenttype...

Patrice

--

"Asaf" <as****@hotmail .com> a écrit dans le message de
news:Oa******** *****@tk2msftng p13.phx.gbl...
Thanks Josh for your help.

Is there a way to know when the client has finished the download process?

"Josh" <so*****@micros oft.com> wrote in message
news:Oa******** ******@TK2MSFTN GP15.phx.gbl...
> >
>> Is there a way to create a temporary download link and to know when
>> the
>> client has finished downloading the file?
>
> I use the following technique for Web reporting.
>
> Create the file with a GUID in the file name so thats its unique, and
> point
> the link at it.
>
> Every time someone uses that report I delete any other reports that are
> older than 30 mins.
>
>



Nov 18 '05 #5

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

Similar topics

7
2306
by: Norton | last post by:
Hi all, I would like to know if there is any method in asp or asp.net to direct the browser to download a file into the Temporary Internet Files directory so that i can make use of vb script to do the further process ie. tells IE to download my desired Word File into the Temporary Internet Files and call an office com object to open it
5
3059
by: Verane | last post by:
Hi, I have read the thread named "Could not copy temporary files to the output directory" on this newsgroup. And I have the same symptoms on my machine. But I didn't find any solution suitable for me. (I don't use ASP.NET or any web service at all, only windows forms). Here is how I work : I have a solution with 10 projects inside. Each of them is built in a different directory (MyProject/bin/debug for each project). I have then a...
13
8877
by: Daniel Walzenbach | last post by:
Hi, Imagine the following situation: I have an asp.net application which allows uploading files to a SQL Server 2000 database (Files are stored as type "images"). As a next step I would like to implement some way to enable downloading those files from the database which leads me to the following two problems: 1.) How can I create a file "in memory" as I don't want to create temporary files stored on my web server and
6
3692
by: windandwaves | last post by:
Hi Folk Some of my clients asked me to create "fancy emails" for them (aka html formatted emails). I know how to make a nice html document, but I had trouble creating a simple way to provide the document to my clients so that they could use it to. I know most of them use Outlook XP or Outlook 2003, so what I created was a page that creates a Visual Basic script that, when saved to the desktop and
1
2165
by: Boris | last post by:
We have some .NET 1.1 DLLs which we want to use in a ASP.NET 1.1 web page (actually one is a real .NET DLL in Managed C++ while the others are native Windows DLLs). First we copied all of the DLLs to /bin. However when we do this we get a configuration error. When we copy the DLLs to "/Temporary ASP.NET Files/..." everything works. Does anyone know what could be the reason that the DLLs can be loaded from the temporary files but not from...
5
5809
by: nephish | last post by:
Hello there, i have an app that i need to be able to publish a link to download a csv file. i know that i can use php to make the file, but how to i link to it through php. like if i have an html file that has a link in it like this <a href="somedata.csv">here be data</a> or would i make that a .php file that would generate a csv ?
2
11077
by: prakashwadhwani | last post by:
I have an app with a Front End and a Back-End. My date field is INV_DATE I would like to copy all data with year(inv_date) 2005 to a temp table in both, the front end & the back end. How can I do this via VBA ? Rgds, Prakash.
2
4276
by: someusernamehere | last post by:
Hey, I need to implement this with PHP, i.e. I have some files in www.myserver.com/files what I need is when an user log into the account a temporary URL is created for download a file in /files, and then, when the file is downloaded the link disappear of course, I also need to know how to protect the files for downloading by direct URL, make sense?
12
4021
by: Bob Bedford | last post by:
I've to build a website where the customer can buy an image. I'm thinking in the 2 ways to let people get those images: receive them by Email or send them an image link wich validity is limited in time. The second may help me to know if an image has been downloaded and how many times. How to build such download link ? The informations I'd like is the userid, the datetime limit and the imagefile, off course everything must be encrypted...
0
9645
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
10341
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
10155
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
9954
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8979
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
7502
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
5383
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...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2881
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.