j***@hotmail.com
2006-07-11 08:17:02 UTC
Hi Guys,
I have a problem, and I would be grateful for any help.
My WebApp has to do some database work in page1.ASP Because this may
take a few second, before Page1 connects to the database, it doeas a
"Response.Buffer=false", and pumps out a bit of javascript which
displays a progress bar.
SO far so good.
When the database call is completed, I then write out a bit more
javascript to stop the progress bar.
Now, I have a binary fields retrieved from the database, which needs to
be written like this :
<%
Response.ContentType = "application/pdf" [error]
response.BinaryWrite (mydatabase field)
%>
Of course I am getting an error about HTTP headers having been written
already.
Can anyone suggest a way that I can display this PDF from Page1.asp ?
At the moment, one I have done the database work (which populates the
database) I have to transfer to PAGE2.ASP which then has to open the
database, and retrieve the field again. The problem is that this
process takes a few seconds too, which also requires the progressbar
!!!!!
What I would like to do, (if it's possible) is something like this :
PAGE1.ASP
<%
...[code to intialise progressbar]...
...[database call]...
...[clear progress bar]...
...[write db field as PDF]...
%>
thanks in advance
I have a problem, and I would be grateful for any help.
My WebApp has to do some database work in page1.ASP Because this may
take a few second, before Page1 connects to the database, it doeas a
"Response.Buffer=false", and pumps out a bit of javascript which
displays a progress bar.
SO far so good.
When the database call is completed, I then write out a bit more
javascript to stop the progress bar.
Now, I have a binary fields retrieved from the database, which needs to
be written like this :
<%
Response.ContentType = "application/pdf" [error]
response.BinaryWrite (mydatabase field)
%>
Of course I am getting an error about HTTP headers having been written
already.
Can anyone suggest a way that I can display this PDF from Page1.asp ?
At the moment, one I have done the database work (which populates the
database) I have to transfer to PAGE2.ASP which then has to open the
database, and retrieve the field again. The problem is that this
process takes a few seconds too, which also requires the progressbar
!!!!!
What I would like to do, (if it's possible) is something like this :
PAGE1.ASP
<%
...[code to intialise progressbar]...
...[database call]...
...[clear progress bar]...
...[write db field as PDF]...
%>
thanks in advance