Ask a Question related to ASP.NET General, Design and Development.
-
PJ #1
Multiple Requests (windows)
My web application will open a popup that, upon a user action, will initiate
a request that will result in a file being sent as an attachment to the
client. The download works fine, except that the user is no longer able to
browse and get responses in the main window. The request just seems to hang
and does not get the response until the download is finished. It only seems
to effect the session in which the download is taking place. Other clients,
even on the same computer, are not experiencing request/response issues. I
doubt it's an issue with the server side code I am using for the download,
but here it is nonetheless. Any advice on this issue would be greatly
appreciated. TIA~ PJ
Dim br As New BinaryReader(fs)
Dim offset As Long
Response.Clear()
Response.BufferOutput = False
Response.Buffer = False
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", "attachment; filename=" +
fileName)
Response.AddHeader("Content-Length", fs.Length.ToString())
Response.Flush()
Dim totalSize As Long = fs.Length
Dim size As Long
Do
If offset + CHUNK_SIZE > totalSize Then
size = totalSize - offset
Else
size = CHUNK_SIZE
End If
If Not Response.IsClientConnected Then
Exit Do
End If
Response.BinaryWrite(br.ReadBytes(Convert.ToInt32( size)))
fs.Flush()
Response.Flush()
offset += size
Loop Until offset >= totalSize
fs.Close()
br.Close()
Response.Close()
PJ Guest
-
Flash blocking multiple server requests
Hi! The problem is this: if you have an open conection with the server, like, for example, streaming a mp3/flv, Flash simply ignores any other... -
multiple requests simultaineously, file upload
Hi, i'm new to php but i'm a bit familiar with servlet etc. I have 2 questions: - when a php site s browsed by many users at the same time,... -
IIS handling multiple requests for the same ASP
<% Response.buffer = true Dim a a = 0 while a < 1000 Response.write "Im Looping" Response.flush a = a+1 wend -
different proxies and multiple requests in LWP::Parallel
I've written the following script to verify a list of proxies in a seperate file. It works fine except that I can't get LWP::Parallel to use... -
multiple find requests in a link -- impossible?
Mark Bowron wrote: ...



Reply With Quote

