Pdf / word doc文件从ASP.NET中的webpage1传递到webpage2 [英] Pdf/word doc file passing from webpage1 to webpage2 in ASP.NET
本文介绍了Pdf / word doc文件从ASP.NET中的webpage1传递到webpage2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在我有一个应用程序,它允许用户下载使用水晶生成的pdf文件(来自网页1),并在另一个页面(网页2)用户从本地驱动器上传该文件以提交进行处理。现在我需要生成并将第1页的pdf文件传递给第2页,以降低流程的复杂性。如果您有任何想法,请分享。
我尝试过:
我打算使用查询字符串。
Now I have an application and it allows user to download a pdf file(from webpage1) which is generated using crystal and on another page(Webpage2) user upload that file from local drive to submit for processing. Now I need to generate and pass the pdf file from page 1 to page 2 to reduce the complexity of the flow. If you have some idea please share.
What I have tried:
I was thinking to use query string.
推荐答案
步骤1:将生成的pdf文件保存到项目解决方案中(网页1)
步骤2:将该文件路径存储在会话中
步骤3:您可以检查会话是否包含文件路径,然后执行另一个网页的处理。 (网页2)
Step 1 : Save that generated pdf file into your project solution (Webpage 1)
Step 2 : Store that file path in session
Step 3 : You can check if session contains file path then do process of another webpage. (webpage 2)
这篇关于Pdf / word doc文件从ASP.NET中的webpage1传递到webpage2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文