Re: Ajax UpdatePanel as Source for IFrame

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marc

    Re: Ajax UpdatePanel as Source for IFrame

    "jacoberg2" <jacoberg2@hotm ail.comwrote in message
    news:cdcbd57a-8736-464e-9c57-defedcd3c7ff@l4 2g2000hsc.googl egroups.com...
    I'm new to ASP.NET and I was curious about some strange behavior that
    i have witnessed in a page I made.
    >
    I created some nested repeaters to display some data and a dropdown
    list and wrapped them in an UpdatePanel on one page:
    >
    <asp:ScriptMana ger1>
    </asp:ScriptManag er1>
    <asp:UpdatePane l1>
    <ContentTemplat e>
    <asp:dropdownli st1>
    <asp:Repeater >
    <asp:Repeater >
    <asp:Repeater >
    ...
    </ContentTemplate >
    </asp:UpdatePanel 1>
    >
    When I load this as a stand alone page, just by calling the path in
    the browser, the ajax works perfectly for all the postbacks. Meaning
    the links in the repeaters that open the nested repeaters do not
    refresh the page.
    >
    When i set this page as the source for an iframe in another page, the
    only control that performs postback without refreshing the whole page
    is the dropdownlist. When i click the links in the repeaters, the page
    refreshes. Does anyone have any idea why the behavior would change so
    much just by loading it in an iframe? Thanks for any help you can give
    me!
    >
    Never heard of this before....! Are you sure it's not reloading the page
    when you view it normally?
    A way to test this in IE and Firefox is to navigate to the page, clear the
    address bar and then click whatever it is you need to click.
    If the address bar gets filled back up with your URL, then a full page post
    back is occurring. Otherwise it's using XMLHTTPRequest.
    Another possibility is that the pages are on different domains and your
    browser's security settings are disabling JavaScript... unlikely but a
    possibility.

    Marc

Working...