如何在asp.net代码中重新加载iframe src

如何在asp.net代码中重新加载iframe src

问题描述:

亲爱的团队,



我正在使用iframe在一个modelpopup控件中显示pdf文件它工作正常,修改后面的代码上的pdf文件然后我想要在modelpopup中的iframe中看到修改过的pdf,但是在这个senario中显示旧的pdf文档(IN .NET)。



请尽快给我答复帮助我。





提前谢谢..

Dear Team,

I am using iframe for showing pdf file in a modelpopup control it is working fine, after modifing the pdf document on the code behind then i want to see the modified pdf in the iframe in modelpopup, but in this senario the old pdf document is showing(IN .NET).

Please give me reply ASAP and help me.


Thank you in advance..

在文件名中附加一些随机字符串以解决问题。如果您的文件名是''filename.pdf'',那么在其中添加一些随机字符串,例如。 ''filename_1234.pdf''并且每次生成新的pdf时都会将其他一组随机字符串附加到其中。您也可以尝试使用文件名添加查询字符串,您还需要为查询字符串的值生成随机字符串,如果您不想要该方法,则至少您的文件名是干净的。祝你好运。
append some random string into the filename to resolve the issue. if your filename is ''filename.pdf'' then add some random string into it eg. ''filename_1234.pdf'' and each time you generate new pdf append other set of random string into it. You can also try instead to the filename add query string also you need to generate random string for the value of the query string at least your filename is clean if you don''t want that method. Good luck.