C# - Finding Out Is User Fully Completed Download Or Not?
Oct 13, 2010
I have an webapp which dynamically generates a file and stores it on the server. When a user comes along, this file is served, after which it gets deleted. Each user gets their own generated file after which it becomes useless.Is there a way to know if the user managed to download the file fully, so that it may be deleted and not clogging up my server with outdated files?At the moment the problem is a user is clicking "Download file" then it being cancelled or failed, so they try again but its been deleted.
View 2 Replies
Similar Messages:
Oct 7, 2010
I have this ASP.NET web site that allows users to download program installation packages (just normal files). I want to be able to track when a download is completed (i.e. the file has been fully downloaded to the user's computer) and then invoke a Google Analytics script that reports a completed download as a 'Goal' (obviously, one of my goals is to increase file downloads).
The problem is that I need to support direct file URLs, as opposed to the "redirect page" solution. This is because a lot of traffic comes from software download sites that explicitly demand a direct file URL when submitting a product. Perhaps, they do their own file analysis (i.e. virus checking). But with this set of limitations, a typical scenario is:
The user visits my product listing on a software download site The user clicks the "Download" button on this site The "Download" page is typically a redirect that finally brings the user to my file via the direct URL I've initially submitted, i.e. [URL]
If under these conditions, an exact solution for monitoring is not possible, maybe there exists a workaround? What comes to my mind is temporarily storing the number of performed downloads on the server and then accessing an administrative page that somehow reports this number to Google Analytics and finally sets it back to zero. With this workaround, there is at least no need to try to attach a javascript handler to a non-HTML resource. But even then there are issues:
How to track if a download has completed? How to track user geolocation and browser capabilities to make them further visible in the reports?
View 6 Replies
Feb 8, 2010
suppose when user click on link or button for downloading file in asp.net then download start.so i just want to know how to detect that the file as been downloaded in client machine.is it possible to track from server side code. because i want to develop a file download sectionfrom where user at a time can download only single file. so in this case when file download starti will just capture client ip and store it in session and so when user click on another link to download another fileat the same when another file is downloading so in this situation i will check file is downloading from this ip and if yesthen i will reject user request and tell him that sorry already a file is downloading so try after when this download willbe over. when file download will be over then i will clear that session and in this way my purpose will be solved andrestric user to downlolad multiple file.this type of things is used in rapidshare,hotfile etc. so i just implement this
View 3 Replies
Apr 20, 2010
I'm looking for some opinions on how to go about the following:
Say I have a wizard control in my website, and I've completed all the steps on the wizard and I want to redirect to another page after the "Finish" button I've clicked. So, then after that I logout of my site, and go back into it bearing in mind the wizard has been completed, I want to redirect the user to another page and by-pass this wizard control. Would I setup a flag in the database, to indicate if the wizard control has been completely filled or not. If status = true then redirect the user to different page (and bypass wizard)... but if status = null then make sure user still can go through steps in the wizard control.
[Code]....
set a flag to state whether all of the wizard has been filled in or not / otherwise go back and complete the wizard?
View 2 Replies
Jan 15, 2010
I'm creating a form which different sections are in a accordion. I needed in the section is there any way I can do this?
View 1 Replies
Jan 22, 2010
On an ASP.net site at my place of work, the following chunk of code is responsible for handling file downloads (NOTE: Response.TransmitFile is not used here because the contents of the download are being streamed from a zip file):
[code]....
I've just read about the 'buffer' property of the Response object. If I set that to false, will that prevent the Response.BinaryWrite() calls from buffering the data in memory? In general, what is a good way to limit memory usage in this situation? Perhaps I should stream from the zip to a temporary file, then call Response.TransmitFile()?
EDIT: In addition to possible solutions, I'm very interested in explanations of the memory usage issue present in the code above. Why would this consume far more than 1MB, even though Response.Flush is called on every loop iteration? Is it just the unnecessary heap allocation that occurs on every loop iteration (and doesn't get GC'd right away), or is there something else at work?
View 1 Replies
Jan 21, 2010
I have a download page with a linkbutton that users use to download files. The event handler of the linkbutton sets up the Response type for the user to see the download dialog and chose to save it. I need to find out accurately how many times the file has been downloaded. If I increment a counter in the link button's event handler, I'd assume it wouldn't be accurate as the user may chose to click on Cancel in the download dialog.
Where exactly do I need to hook this counter incrementing logic?
View 2 Replies
Mar 30, 2010
Is it possible to have a validator inside of a User Control? If so, does anyone have a snippet of code from a working example?
View 1 Replies
Mar 12, 2010
How to find how long a user spend in a website . It is to find the time span a user send in a website.
View 1 Replies
May 4, 2010
I'm looking for advice on what .NET user interface components are out there on the market. I have been developing asp.net websites and have mainly been using the Visual studio toolbox build in controls supported by the AjaxcontrolToolkit and the applications have been mainly used inhouse running on our company intranet.
But now a new client wants a much more professional looking, commercial web application and they have a budget for some user components for use in the application. Any recommendations where value for money will be realised.
Interested in components that will integrate well with ASP.NET 3.5 SP1 or even .NET 4.
View 2 Replies
May 18, 2010
I am new to asp.net and C#. I have a web site which allow user to specify startdate and enddate. My website generetes url based on the dates specified by user and downloads few files namely file x, file y etc from the url genereated.now I want the user to know the status of download i.e i want to display a message " downlaoding file x"......"file x download finished". "downloading file ".etc basically i want the user to know the status of download of each file
View 6 Replies
Mar 31, 2011
Im developing a web app using MVC, for part of my app the user clicks a link which causes a file to be generated server side and then downloaded to the clients local machine. I can do this by returning a FilePathResult form the controller but the file will only download to the browsers default download folder.Is there a way I can force this file to download to a diferent folder?Preferably I would like to add a set folder location in the application settings (the app will run on an intranet, with all machines setup exaclty the same, so the folder location not existing is not a problem). If this is not possible then I would at least like to display a dialog on the client where they can select the location to download the file too.
View 4 Replies
Jul 14, 2010
I want to allow my user to click on a button that says "download" and then will build a dynamic csv file on the fly and will prompt the user to download. I know how to build the file using a HTTPHandler, but not quite sure the mechanism for delivering the content via download.
View 2 Replies
Nov 11, 2010
I want to create a .doc-file in my code behind and let the user download it somehow. How can this be done in the simplest way without saving the file at the server? I heard MemoryStream can be used but I'm not exactly sure how.
View 1 Replies
Nov 30, 2012
how to make a dll available to user for download from my web site?
The dll is called CAPICOM and it s a microsoft dll. I need it to be downloaded by the user and registered on his machine, in order to do some client encryption stuff.
If I have the dll on my server, how to make the asp.net web page in order to alow the client browsing the site to download the dll file and register it on his local machine ?
View 3 Replies
Feb 11, 2011
I need one web application where User can select one of all attached Printers in Network.I am getting idea how to start.Is there any API or any ActiveX Control that I can use for that.
View 2 Replies
Feb 2, 2010
I have a Master Page that has several User Controls on it. The MasterPage code behind does some work to calculate a value that needs to be used in all of the UserControls. From the UserControl code behind, how do I access the public property of the MasterPage that I have set?
View 2 Replies
Sep 30, 2010
I there a way to get the user id that they signed on to the computer with from web site project, without changing IIS so they will have to login? This will be interanet and remote internate users.
View 3 Replies
Jan 19, 2010
I have been playing around with loading user controls in a CMS style where I can change the position and order. I have come up with this...
[Code]....
It all works fairly well - but I have alot of propertys in my user control code behinds where I could inject values into the usercontrol from my base class.
I like the way I can position usercontrols from the DB, I even added a time and date section where they could be switched on and off per day or time.
If I make every user control access the DAL for the data, it means i will have one select per user control, which means including my bassclass I could have upto 15 selects (visits tot he DB) to make the front page. Though this does not seem to make a performance problem, I was wondering if there was a better way of doing this.
View 2 Replies
Sep 9, 2010
I have a user control which has html elements like <input type="button".... and i want to set its display property on preRender state.Would you please explain, what kind things i have to handle this user control? So, in this functionprotected override void OnPreRender(EventArgs e) { }
I have only EventArgs e and it doesn't have proper method or properties to bring me the html of user control.
View 1 Replies
May 25, 2010
we have uploded multiple documents. i want to faclitate free user to download one of file.
If Free User want to download another file then i want to show message "Register now for download this file "
If User will complete the registration from then he can download multiple files.
View 2 Replies
Mar 27, 2011
i wish to have a dialog prompt out by ajax when user click on an image button. Currently i able to include a simple text field and get the user input like this:
[Code]....
[Code]....
View 3 Replies
Apr 19, 2010
I have a folder on my web server that has hundreds of mp3 files in it. I would like to provide the option for a user to download a zipped archive of every mp3 in the directory from a web page.
I want to compress the files programmatically only when needed. Because the zip file will be quite large, I am thinking that I will need to send the zip file to the response stream as it is being zipped, for performance reasons.
View 3 Replies
Nov 16, 2010
I have very similar problem as this: Allowing users to download files - ASP.NET , but in my case I am generating xlsx file with ajax, and on ajax-called aspx page I am using:
[code]....
When this file is generated, control is returned to ajax calling page and from there I wan't to show save file dialog based on this ajax response and allow user to download this generated file. I don't want to save file on disk with ajax called page and then redirect ajax calling page to that file, because of popup blocker in IE. I am using jquery for ajax calls:
[code]....
View 1 Replies
Oct 22, 2010
I've developed a C# Windows forms application that I want to market. I also have a web site built using aspx.net. I would like to have a customer download my application from my website to their machine and install it or save it. I've never tried this before, but it appears to be standard stuff for downloading anything from a web site.
View 4 Replies