Hi Support,
Hi Rakesh,
Below is the whole source code. we have to give end user option to save file own his location so we can’t use pres.write method to save PPTX file.
Hi Rakesh,
I have worked with the code shared by you. Actually, you are using two responses at one time. Only one of them can be entertained at one time. This issue is not related to Aspose.Slides. If you export any file in stream from browsers and user will set the page to modal for file path selection. The redirect may not work. You may need to devise some approach to cater your requirement of exporting presentation over stream and letting user to select path and at the same time redirecting your page to some other page. I have used Response.End() and there was no issue. Please observe following web links for your kind reference.
- In ASP.NET MVC, how does response.redirect work? - Stack Overflow
- c# - Cannot redirect after HTTP headers have been sent - Stack Overflow
https://forums.asp.net/t/1729081.aspx/1
- asp.net - I am getting exception "Cannot redirect after HTTP headers have been sent" when redirecting to another page - Stack Overflow
- c# - Server cannot clear headers after HTTP headers have been sent - Stack Overflow
Many Thanks,