如何在asp.net代码中重新加载iframe src [英] how to reload iframe src in asp.net code behind

查看:302
本文介绍了如何在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.


这篇关于如何在asp.net代码中重新加载iframe src的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆