I'm working on a SharePoint application where I output a PDF content to the browser so that the user can save the PDF. But it is working when I do a Response.Redirect()
but not when I open the same page in a new popup window using SharePoint's CommonShowModalDialog().
If I redirect to http://test/pdfoutput.aspx where I've written the BinaryWrite()
code it is working fine.
But if I open the page using SharePoint's Modal dialog I'm getting the page to be opened in the pop up correctly and the code is getting executed without any exceptions while debugging. But I'm not getting the save dialog.
Same page -> Response.Redirect() - works
-> CommonShowModalDialog() - Fails
Any ideas?