Redirecting a page after a PDF download

后端 未结 5 1226
耶瑟儿~
耶瑟儿~ 2020-12-11 07:55

I have an aspx (say 1.aspx) page from where first I am downloading a pdf file and then I want to redirect to some Thanks.aspx page. The code is this:

protect         


        
5条回答
  •  旧时难觅i
    2020-12-11 08:33

    I've found it easier to put the PDF download page in an iframe. That way you can activate the PDF download on the client side by just pointing the iframe source to the PDF download page. After that you can either move to a new page, or just show the thank you text right that on the page that has the iframe in it.

提交回复
热议问题