sending them to an Oracle procedure for processing. While
I'm doing this I'm updating a <DIV> tag in the browser
with index number of the current array item so the user
knows how far along in processing we are. The ASP looks
something like this:
<div id=messageToUserTxT>Please wait...</div>
<%
For i = LBound(arrayOfEmployeeNumbers) To _
UBound(arrayOfEmployeeNumbers)
'...Generate and execute SQL
cn.execute SQL
%>
<script language=javascript>
document.getElementById('messageToUserTxT').innerT ext
= 'Processing <%=i%> of <%=UBound(arrayOfEmployeeNumbers)%
';
</script>
<%
Response.flush()
Next
%>
This does exactly what I want it to do, but I now get this
error when I try and redirect the user to another page
when the processing is complete:
The HTTP headers are already written to the client
browser. Any HTTP header modifications must be made
before writing page content
According to some posts I've seen in the forum this
happens because I've already written some HTML to the
browser.
I was wondering therefore if there is any way I could
redirect the user to the next page using some other
mechanism? I seem to recall an alternative to using
Response.Redirect, but I cant remember what it is!
Any ideas?
Thanks,
Colin