Rank: Newbie Groups: Member
Joined: 8/9/2013 Posts: 6
|
Hello, In our asp.mvc 5 project we are able to convert view to pdf using this http://www.essentialobjects.com/doc/4/web/mvc.aspx#save approach. What is the recommended way to do a redirect after pdf conversion using above approach?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
You can not send a redirect and a PDF file down the browser at the same time on a single request. So these two things have to be done with two different requests. One way you can do this is when user clicks a button, you can open up a new window and do the PDF conversion in that request. You can then continue with redirect in your original window. Another way is to have two different buttons: one to redirect and one to save to PDF. In short, these two things can not happen at the same time over the same request.
Thanks!
|