473,322 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

ASP.NET vs. ISAPI for File Downloads

I see the most common way to monitor the number of bytes actually sent
to the client in ASP.NET for a file download is by placing a
Response.Write() into a loop and incrementing a counter as you stream
bytes down; I have seen no better examples posted on the net or in the
newsgroups than this. There exists the Response.WriteFile() and
Response.TransmitFile() APIs, but none of them give the ability to
determine how many bytes, exactly, were transmitted to the client (say
the client closes his/her browser half-way through the download
process and the client's socket closes - not all file bits were
transferred).

Not using any third-party applications, is this possible in ASP.NET?
With ISAPI I can run a TransmitFile and have IIS notify me via
callback how many bytes were transferred when the process ended for
whatever reason.

I would appreciate any response on this topic as I find it hard to
believe that such functionality is only available in ISAPI. The
Response.Write() loop is kind of goofy and I'm finding it to be
inefficient in practice.

TIA,
Ben

Nov 18 '05 #1
0 787

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

Similar topics

0
by: Vince Hurst | last post by:
I have one server running Win2K SP4, PHP 4.3.3 in CGI, IIS 5, MySQL 3.23.49, and hosting PHP-Nuke sites. See: http://nuke.mineralore.com/info.php I've run into a problem with using phpMyAdmin...
4
by: Irene | last post by:
Hi, I have an asp page that allows a user to search for info in a DB and add info to a DB. The search uses "ADODB.Connection" objects in the page, but the add will use a call to an isapi dll...
1
by: Greg | last post by:
Hi Hi, I'm about to make an isapi extension. Before I begin I would like to know if theres an equivalent int hte .net framework that works much the same way? best regards Greg.
3
by: Lionel Schiepers | last post by:
I rencently tested an web application with ISAPI extensions that internally use managed extensions but the call to the ISAPI failed. I receive the following message: "A dynamic link library (DLL)...
2
by: Jon Maz | last post by:
Hi All, I've been looking into options for URL Rewriting in .net, and to be honest, I haven't seen anything that's easier than the old Classic Asp solution with an ISAPI filter redirecting to an...
0
by: Sarah J | last post by:
Hi We have a high traffic PHP built website which, for reasons beyond my control, is hosted on a twin processor (Zeus) Windows 2003/IIS6 server. PHP 4.4.1 came preinstalled as a CGI but because...
2
by: Prabhat | last post by:
Hello ALL, I have ASP pages that calls some ISAPI dll that created using Delphi for generating reports. The report page opens fine for 1st time when invoked but next time i get error like "Name...
4
by: ImOk | last post by:
I have the following setup: Windows XP Prof, IIS, PHP5 PHP5 works no problem with either PHP-CGI.EXE and mySQL, PHP5 also works no problem with php5isapi.dll as long as I dont use mySQL....
13
by: mtuller | last post by:
I am attempting to install PHP 5.2.x on Windows 2003 with IIS 6.0. When I go to install 5.2.1, it gives me an error when it tries to start the server I get an error. So I try installing 5.2.0. This...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.