I thinking that once the pdf page has opened all code in the parent page stops executing until user clicks on page again. Is there some what to redirect after response.close() had done.
Response.ContentType =
"application/pdf";Response.BinaryWrite(buffer);
Response.Flush();
Response.Close();
Respones.Redirect(
"main.aspx");
You cannot redirect after you close the response. Remove the line of code that says Response.Close(); and your code should work fine.
Don't forget to mark the most helpful post asAnswer for the sake of future readers. Thank you
The suggestion of commiting out the Response.Close() didn't work or maybe there something else I need to do, I'm thinking maybe a timer would work here. Anybody have any other suggestions.
0 comments:
Post a Comment