aspx页面中的iframe [英] iframe in aspx page

查看:89
本文介绍了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.com 电话:

+44(0)208 681 5421,传真:+44 (0)208 688 1673这封电子邮件和随之传送的任何

文件都是保密的,仅供其所使用的个人或实体使用。
。此通信

可能包含可能具有特权的信息。如果您不是预定的

收件人或负责将电子邮件发送给预期的

收件人的人,则建议您错误地收到此电子邮件并且

严禁使用,传播,转发,打印或复制此电子邮件



" Fred" < FR ********** @ yahoo.com>在消息中写道

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.com 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.com> 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
http://Steve.Orr.net

弗雷德 < FR ********** @ yahoo.com>在消息中写道

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
http://Steve.Orr.net
"Fred" <fr**********@yahoo.com> 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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