iframe in asp:content keep refershing : how to avoid?? RRS feed

  • Question

  • Hi, 

    I am using iframe but keep refreshing , its keep reloading again again. i dont know how to avoid reload event. below is my code:

    below is code:

    <asp:Content ID="Content4" ContentPlaceHolderID="mainContent" runat="server">
            <asp:ScriptManager ID="ScriptManager1" ClientIDMode="Static" runat="server" />
            <asp:UpdatePanel ID="UpdatePanel1" ClientIDMode="Static" runat="server">
                <ContentTemplate >
                            <div class="navbar navbar-default contentTitleArea" style= "positionabsolutealign-content:center;margin-left:1pxmargin-right:1px;width:100%;">
                            <h3 id="header" runat="server" style="text-align:left;margin-bottom:-200px;font-size:24px;font-weight500" class="contentTitleText">Public Health Agencies</h3>
                            <iframe  style="width:100%margin-top:1px;height:900px" visible="true" src="http://docs.google.com/gview?url=http://www.pdf995.com/samples/pdf.pdf&embedded=true" id="myIframe"  runat ="server"></iframe>


    • Moved by CoolDadTx Wednesday, March 8, 2017 3:39 PM ASP.NET related
    Sunday, March 5, 2017 5:01 PM

All replies

  • Generally ASP.Net has a seperate main Forum. You might be better of asking your question there:

    However one thing of importance to understand about Dynamic webpages is that no mater how much they look like Desktop applications, they are still 1980 HTML WebFormulars. A postback is required for any server logic to run. But one can often use AJAX and similar approaches to hide the postback from the user/browser.

    Remember to mark helpfull answers as helpfull and close threads by marking answers.

    Sunday, March 5, 2017 11:01 PM
  • Hi Jumping,

    The iframe itself should not be in an updatepanel: an updatepanel will not prevent an iframe from refreshing when the page posts back. Please try again.

    Best regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, March 8, 2017 6:16 AM