aspx页面中的iframe

编程入门 行业动态 更新时间:2024-10-28 16:30:02
本文介绍了aspx页面中的iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个aspx页面:Main.aspx有几个组件导致 回发。在Main.aspx页面中我还有一个包含 a多页pdf文件的iframe。 我面临的问题是每当用户做的时候一个动作 导致主页Main.aspx上的回发,页面回发和 重新加载iframe中的pdf文件。这是一个问题,因为如果 用户已经旋转或放大页面然后丢失了。 无论如何iframe中的内容不是刷新?任何 其他想法来维护pdf文件的状态。? 非常感谢! 弗雷德

I have an aspx page: Main.aspx which has several components that cause a postback. In the page Main.aspx I also have an iframe which contains a multi-page pdf file. The problem I am facing is that whenever the user does an action which causes a postback on the main page Main.aspx, the page posts back and the pdf file in the iframe is reloaded. This is a problem becuase if the user has rotated or magnified the page then that is lost. Is there anyway that the content in the iframe is not refreshed? Any other ideas to maintain the state of the pdf file.? Thanks a lot! Fred

推荐答案

你尝试过使用Page.IsPostBack吗?物业? 国际计算机系统(伦敦)有限公司The Courtyard,14a Sydenham Road,Croydon,Surrey,CR0 2EE,United Kingdom www.icslondon 电话: +44(0)208 681 5421,传真:+44 (0)208 688 1673这封电子邮件和随之传送的任何 文件都是保密的,仅供其所使用的个人或实体使用。。此通信 可能包含可能具有特权的信息。如果您不是预定的 收件人或负责将电子邮件发送给预期的 收件人的人,则建议您错误地收到此电子邮件并且 严禁使用,传播,转发,打印或复制此电子邮件 。 " Fred" < FR ********** @ yahoo>在消息中写道 news:20 ************************** @ posting.google.c om ... Did you try using "Page.IsPostBack" Property? International Computer Systems (London) Ltd. The Courtyard, 14a Sydenham Road, Croydon, Surrey, CR0 2EE, United Kingdom www.icslondon Telephone: +44 (0) 208 681 5421, Facsimile: +44 (0) 208 688 1673 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This communication may contain information which may be privileged. If you are not the intended recipient or the person responsible for delivering the email to the intended recipient, you are advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited. "Fred" <fr**********@yahoo> wrote in message news:20**************************@posting.google.c om... 我有一个aspx页面:Main.aspx有几个组件导致回发。在Main.aspx页面中我还有一个包含多页pdf文件的iframe。 我面临的问题是每当用户做一个动作时导致主页Main.aspx上的回发,页面回发和重新加载iframe中的pdf文件。这是一个问题,因为如果用户已经旋转或放大页面然后丢失了。 那么iframe中的内容是否没有刷新?任何其他想法来维护pdf文件的状态。? 非常感谢! Fred I have an aspx page: Main.aspx which has several components that cause a postback. In the page Main.aspx I also have an iframe which contains a multi-page pdf file. The problem I am facing is that whenever the user does an action which causes a postback on the main page Main.aspx, the page posts back and the pdf file in the iframe is reloaded. This is a problem becuase if the user has rotated or magnified the page then that is lost. Is there anyway that the content in the iframe is not refreshed? Any other ideas to maintain the state of the pdf file.? Thanks a lot! Fred

我建​​议使用常规帧而不是IFrame。 这样每个帧都独立回发 - 一个没有嵌入 其他所以你不会有这个问题。 - 我希望这会有所帮助, Steve C. Orr ,MCSD Steve.Orr 弗雷德 < FR ********** @ yahoo>在消息中写道 news:20 ************************** @ posting.google.c om ... I''d suggest using regular frames instead of an IFrame. That way each frame posts back independently - one is not embedded within the other so you won''t have this problem. -- I hope this helps, Steve C. Orr, MCSD Steve.Orr "Fred" <fr**********@yahoo> wrote in message news:20**************************@posting.google.c om... 我有一个aspx页面:Main.aspx有几个组件导致回发。在Main.aspx页面中我还有一个包含多页pdf文件的iframe。 我面临的问题是每当用户做一个动作时导致主页Main.aspx上的回发,页面回发和重新加载iframe中的pdf文件。这是一个问题,因为如果用户已经旋转或放大页面然后丢失了。 那么iframe中的内容是否没有刷新?任何其他想法来维护pdf文件的状态。? 非常感谢! Fred I have an aspx page: Main.aspx which has several components that cause a postback. In the page Main.aspx I also have an iframe which contains a multi-page pdf file. The problem I am facing is that whenever the user does an action which causes a postback on the main page Main.aspx, the page posts back and the pdf file in the iframe is reloaded. This is a problem becuase if the user has rotated or magnified the page then that is lost. Is there anyway that the content in the iframe is not refreshed? Any other ideas to maintain the state of the pdf file.? Thanks a lot! Fred

更多推荐

aspx页面中的iframe

本文发布于:2023-11-11 11:40:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1578338.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:页面   aspx   iframe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!