Hi,
I have a page which allows a user to open an UpdatePanel (with an AJAX Modal Popup Extender) from where the user can submit information. The UpdatePanel contains a LinkButton which allows the user to view a PDF file associated with the particular product in a new tab without having any effect on the page, or UpdatePanel, from where the event is launched.
I tried accomplishing this using Response.Redirect, Window.Open and Server.Transfer with mixed results. Using Response.Redirect has to affect that the page from which the event is launched reloads in the process closing the UpdatePanel and reloading the page in a manner that the page's formatting (DIV's) is completely scrambled, but the PDF does open in a new tab.
After hours of research and testing the best result was achieved using Server.Transfer after reading this article: http://www.aspsnippets.com/Articles/ASP.Net-Response.Redirect-or-Server.Transfer-Open-new-window.aspx. The methods proposed in the article comes extremely close to the final effect I need to create. The only problems I have using this method is:
1) the PDF opens in a new page or browser instance and not in a new tab,
2) soon after opening in the new page a blank error message appears with an Adobe Acrobat title and the new page closes the moment the error message's OK button is clicked, and
3) a new tab is opened, is absolutely empty.
On the upside: the page from where the event is launched remains perfectly intact. Any advice on how to address the above shall be greatly appreciated.
Thanks in advance!