Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > iframe in aspx page

Reply
Thread Tools

iframe in aspx page

 
 
Fred
Guest
Posts: n/a
 
      08-10-2003
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
 
Reply With Quote
 
 
 
 
Mohammad A. Samara
Guest
Posts: n/a
 
      08-10-2003
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" <> wrote in message
news: 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



 
Reply With Quote
 
 
 
 
Steve C. Orr, MCSD
Guest
Posts: n/a
 
      08-10-2003
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" <> wrote in message
news: 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



 
Reply With Quote
 
MS News \(MS ILM\)
Guest
Posts: n/a
 
      08-10-2003
Natty,
can you provide us with an example of XMLHTTPREQUEST
etc..
Thanks


"Natty Gur" <> wrote in message
news:%...
> Hi,
>
> If all of your clients based on IE you can use XMLHTTPREQUEST to access
> the page, retrieve just the data that you need (no postback and
> viewstate), and use javascript to update just the relevant HTML controls
> (nothing refreshed or blinked on the client without smart navigation).
>
> Natty Gur, CTO
> Dao2Com Ltd.
> 34th Elkalay st. Raanana
> Israel , 43000
> Phone Numbers:
> Office: +972-(0)9-7740261
> Fax: +972-(0)9-7740261
> Mobile: +972-(0)58-888377
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
Natty Gur
Guest
Posts: n/a
 
      08-11-2003
I’m writing an article on this issue. If you want sample e-mail
().

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
PJ
Guest
Posts: n/a
 
      08-11-2003
DHTML behaviors are your friend...given you're in an IE 5.5+ environment.
http://msdn.microsoft.com/library/de...asp?frame=true

"MS News (MS ILM)" <> wrote in message
news:...
> Natty,
> can you provide us with an example of XMLHTTPREQUEST
> etc..
> Thanks
>
>
> "Natty Gur" <> wrote in message
> news:%...
> > Hi,
> >
> > If all of your clients based on IE you can use XMLHTTPREQUEST to access
> > the page, retrieve just the data that you need (no postback and
> > viewstate), and use javascript to update just the relevant HTML controls
> > (nothing refreshed or blinked on the client without smart navigation).
> >
> > Natty Gur, CTO
> > Dao2Com Ltd.
> > 34th Elkalay st. Raanana
> > Israel , 43000
> > Phone Numbers:
> > Office: +972-(0)9-7740261
> > Fax: +972-(0)9-7740261
> > Mobile: +972-(0)58-888377
> >
> >
> > *** Sent via Developersdex http://www.developersdex.com ***
> > Don't just participate in USENET...get rewarded for it!

>
>



 
Reply With Quote
 
Natty Gur
Guest
Posts: n/a
 
      08-11-2003
IE 5.0 +

"Windows® Script Components provide a lightweight, easily maintainable
way to create components for implementing DHTML Behaviors available in
Microsoft® Internet Explorer
-----------------
5.0. Using a script component allows script developers to
---
implement behaviors using Microsoft® Visual Basic® Scripting Edition
(VBScript), Microsoft® JScript® (ECMAScript), or any third party
scripting language that supports the Microsoft® ActiveX® Scripting
interfaces."



Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Steve C. Orr, MCSD
Guest
Posts: n/a
 
      08-12-2003
The way most people would probably do it is to have a frameset with 3 frames
containing: Pagemain, Page1, Page2

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Developer for Hire


"Fred" <> wrote in message
news: om...
> Thanks for all the replies. I feel that at this time without learning
> a lot, doing it the frames way would be fastest. I need some help with
> that.
>
> Can I have an aspx page with some components on it and at the sametime
> have a frameset with two frames inside of it? e.g. have pagemain.aspx
> with a datalist on it and also have a frameset with two frames: frameA
> (containing page1.aspx) and frameB (containing page2.aspx) in it.
>
> Thanks,
>
> Fred
>
> "Steve C. Orr, MCSD" <> wrote in message

news:<>...
> > 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" <> wrote in message
> > news: 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



 
Reply With Quote
 
Steve C. Orr, MCSD
Guest
Posts: n/a
 
      08-12-2003
The way most people would probably do it is to have a frameset with 3 frames
containing: Pagemain, Page1, Page2

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Developer for Hire


"Fred" <> wrote in message
news: om...
> Thanks for all the replies. I feel that at this time without learning
> a lot, doing it the frames way would be fastest. I need some help with
> that.
>
> Can I have an aspx page with some components on it and at the sametime
> have a frameset with two frames inside of it? e.g. have pagemain.aspx
> with a datalist on it and also have a frameset with two frames: frameA
> (containing page1.aspx) and frameB (containing page2.aspx) in it.
>
> Thanks,
>
> Fred
>
> "Steve C. Orr, MCSD" <> wrote in message

news:<>...
> > 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" <> wrote in message
> > news: 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



 
Reply With Quote
 
Fred
Guest
Posts: n/a
 
      08-12-2003
Right, but the problem is that my pagemain.aspx has a datalist which
contains hyperlinks. This datalist is my navigation bar. So if someone
clicks on a hyperlink http://server/site/nextpage.aspx, only
pagemain.aspx would navigate to the nextpage.aspx. What I want to do
is to replace the entire frameset with nextpage.aspx. Is there anyway
to do that? Any ideas?

Thanks a lot!

Fred


"Steve C. Orr, MCSD" <> wrote in message news:<#$>...
> The way most people would probably do it is to have a frameset with 3 frames
> containing: Pagemain, Page1, Page2
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> http://Steve.Orr.net
> Developer for Hire
>
>
> "Fred" <> wrote in message
> news: om...
> > Thanks for all the replies. I feel that at this time without learning
> > a lot, doing it the frames way would be fastest. I need some help with
> > that.
> >
> > Can I have an aspx page with some components on it and at the sametime
> > have a frameset with two frames inside of it? e.g. have pagemain.aspx
> > with a datalist on it and also have a frameset with two frames: frameA
> > (containing page1.aspx) and frameB (containing page2.aspx) in it.
> >
> > Thanks,
> >
> > Fred
> >
> > "Steve C. Orr, MCSD" <> wrote in message

> news:<>...
> > > 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" <> wrote in message
> > > news: 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing data to aspx page from htm page via iframe moondaddy ASP .Net 4 09-13-2007 02:38 AM
How do we load page into iframe when not on iframe page? Paul Javascript 3 07-04-2005 06:59 AM
adding main.aspx.vb & main.aspx.resx under aspx John M ASP .Net 1 05-29-2005 09:27 PM
Get form values from iframe (1) to iframe (2) inside a layer in iframe (1) Daedalous Javascript 3 01-16-2004 11:08 AM
How do I post data from aspx page to another aspx page. Sriram Mallajyosula ASP .Net 1 11-05-2003 04:48 PM



Advertisments