Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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
    Fred Guest

  2. Similar Questions and Discussions

    1. Accessing a aspx page using HttpWebRequest from another aspx page on the same webapp
      Did you have any luck on this as I have the same problem. Maybe you can help me out of you solved your problem.
    2. No Page_Load event when aspx is in iFrame?
      It might be me but... I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I do geta Page_Load event when an item on the...
    3. aspx in IFRAME starts multiple session
      I have a html portal page, where there are several IFrames. All IFrames point to aspx pages that belong to one aspnet web application. The...
    4. aspx page in IFRAME.
      I'm calling window.showModalDialog in IE6 to place an IFRAME in a web page dialog box. I'm not abale to select or copy any text in IFRAME. It...
    5. how to interact client script within aspx page to other page functions, etc.? PLEASE!!!
      Hi, I've spent all day trying to find some info on this...please help! I have an aspx page with an xmlDocument (not dataset/relational db) with...
  3. #2

    Default Re: iframe in aspx page

    Did you try using "Page.IsPostBack" Property?


    International Computer Systems (London) Ltd. The Courtyard, 14a Sydenham
    Road, Croydon, Surrey, CR0 2EE, United Kingdom [url]www.icslondon.com[/url] 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" <fredg1232003@yahoo.com> wrote in message
    news:2022fcea.0308091808.39ffc35d@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

    Mohammad A. Samara Guest

  4. #3

    Default Re: iframe in aspx page

    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
    [url]http://Steve.Orr.net[/url]


    "Fred" <fredg1232003@yahoo.com> wrote in message
    news:2022fcea.0308091808.39ffc35d@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

    Steve C. Orr, MCSD Guest

  5. #4

    Default Re: iframe in aspx page

    Natty,
    can you provide us with an example of XMLHTTPREQUEST
    etc..
    Thanks


    "Natty Gur" <natty@dao2com.com> wrote in message
    news:%23kj51vuXDHA.1280@tk2msftngp13.phx.gbl...
    > 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 [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    MS News \(MS ILM\) Guest

  6. #5

    Default Re: iframe in aspx page

    I’m writing an article on this issue. If you want sample e-mail
    (spamNatty@dao2com.com).

    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 [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  7. #6

    Default Re: iframe in aspx page

    DHTML behaviors are your friend...given you're in an IE 5.5+ environment.
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/letimplDHTML.asp?frame=true[/url]

    "MS News (MS ILM)" <sql_agentman@hotmail.com> wrote in message
    news:ebXMlL4XDHA.736@TK2MSFTNGP09.phx.gbl...
    > Natty,
    > can you provide us with an example of XMLHTTPREQUEST
    > etc..
    > Thanks
    >
    >
    > "Natty Gur" <natty@dao2com.com> wrote in message
    > news:%23kj51vuXDHA.1280@tk2msftngp13.phx.gbl...
    > > 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 [url]http://www.developersdex.com[/url] ***
    > > Don't just participate in USENET...get rewarded for it!
    >
    >

    PJ Guest

  8. #7

    Default Re: iframe in aspx page

    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 [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  9. #8

    Default Re: iframe in aspx page

    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
    [url]http://Steve.Orr.net[/url]
    Developer for Hire


    "Fred" <fredg1232003@yahoo.com> wrote in message
    news:2022fcea.0308111741.7e39bca2@posting.google.c 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" <Steve@Orr.net> wrote in message
    news:<eWLX9WuXDHA.1580@tk2msftngp13.phx.gbl>...
    > > 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
    > > [url]http://Steve.Orr.net[/url]
    > >
    > >
    > > "Fred" <fredg1232003@yahoo.com> wrote in message
    > > news:2022fcea.0308091808.39ffc35d@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

    Steve C. Orr, MCSD Guest

  10. #9

    Default Re: iframe in aspx page

    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
    [url]http://Steve.Orr.net[/url]
    Developer for Hire


    "Fred" <fredg1232003@yahoo.com> wrote in message
    news:2022fcea.0308111741.7e39bca2@posting.google.c 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" <Steve@Orr.net> wrote in message
    news:<eWLX9WuXDHA.1580@tk2msftngp13.phx.gbl>...
    > > 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
    > > [url]http://Steve.Orr.net[/url]
    > >
    > >
    > > "Fred" <fredg1232003@yahoo.com> wrote in message
    > > news:2022fcea.0308091808.39ffc35d@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

    Steve C. Orr, MCSD Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139