467,135 Members | 1,234 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,135 developers. It's quick & easy.

iframe in aspx page

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
Nov 17 '05 #1
  • viewed: 2610
Share:
2 Replies
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...
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

Nov 17 '05 #2
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...
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

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by jim.frantzen@gmail.com | last post: by
11 posts views Thread by Fred | last post: by
3 posts views Thread by Stevie_mac | last post: by
3 posts views Thread by Timo | last post: by
reply views Thread by Chukka | last post: by
7 posts views Thread by nicknack | last post: by
4 posts views Thread by moondaddy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.