whenever I use the response, even then. Instead of navigating the given URL, the window is redirected, here is the code.
if (mode == "print") {error_code.Text = ""; //thumb.Src = file_loc + "source /" + "certificate_thumbnail.jpeg"; Link.HRef = "certificate /" + u_name + ".pdf"; Link.Visible = true; Response.Redirect ("http://xx.xxxxxxxxxxxxx.xx.gov/cert/Certificates/" + u_name + ".pdf"); }
(I removed the URL for security purposes which is my customer ...)
The problem is due to opening an aspx page in which the redirect. Is pdf As ASPX is pre-compiled when the text / html opened with IE expects to come back - though as you actually received the application / redirected the PDF, IE itself craps and closes. Try it in Firefox - I bet it works fine.
I really have the same problem at the moment and yet have to find an alternative solution. Look at this link though, there are some good things that can help.
Comments
Post a Comment