Response.Buffer tells the server that, instead of sending the page to the browser as it is processed bit by bit, it should wait until it has finished processing and send the whole page at once. For more info see the ASP documentation.
I don't think
Quote:if Response.Buffer<>True then
response.redirect success.asp
end if
would work.
I think what you should do is put
Code:Response.Redirect success.asp
after the code that updates the database. eg.
Code:
<%
'...
'code that acts on the database
'send them to the success page
Respose.Redirect "success.asp"
%>
On my site I use code in my links section to update the hit count for a site then do a redirect to it, and it works.
Again, let me know if you need more information.
Enter your message below
Sign in or Join us (it's free).