Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. aspx page in iframe reloading issues

aspx page in iframe reloading issues

Scheduled Pinned Locked Moved ASP.NET
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    robustm
    wrote on last edited by
    #1

    Hi, I am having two iframes on a page, the top one contains a select box and the bottom one holds a aspx page depending on the selection of list item in the select box. So, it should always reload the bottom iframe whnever an item is changed in the selectbox and for that i am using reload() to reload the aspx page. And the expected behavior is it should get refreshed (i.e. no postback) But the acutal behavior happening in my case is its throwing this "to display the webpage again the IE needs to resend the information back ..." alert and when click on cancel or retry buttons on the alert its now doing a postback which is not expected. If anybody have any clues, please post them

    A 1 Reply Last reply
    0
    • R robustm

      Hi, I am having two iframes on a page, the top one contains a select box and the bottom one holds a aspx page depending on the selection of list item in the select box. So, it should always reload the bottom iframe whnever an item is changed in the selectbox and for that i am using reload() to reload the aspx page. And the expected behavior is it should get refreshed (i.e. no postback) But the acutal behavior happening in my case is its throwing this "to display the webpage again the IE needs to resend the information back ..." alert and when click on cancel or retry buttons on the alert its now doing a postback which is not expected. If anybody have any clues, please post them

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Please show me how you are doing the refresh operation.

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Simplify Code Using NDepend
      Basics of Bing Search API using .NET
      Microsoft Bing MAP using Javascript

      R 1 Reply Last reply
      0
      • A Abhishek Sur

        Please show me how you are doing the refresh operation.

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->** Simplify Code Using NDepend
        Basics of Bing Search API using .NET
        Microsoft Bing MAP using Javascript

        R Offline
        R Offline
        robustm
        wrote on last edited by
        #3

        this is how I am reloading the aspx in that frame. top.pageContainer.location.reload() One more thing, the problem is seen if there were any postbacks registered in the aspx page. I mean, it works as expected(reloads the page without postback) when there are no postbacks registered on the aspx page. But once a postback event is done on the aspx and try to reload the page it throws that message and postbacks. I thnk this is because, its caching that postback event. But for now, i found the hack... instead of doing a location.reload() i am doing this top.pageContainer.location = top.pageContainer.location.href as pointing to a new url (but pointing the same one) this one solves the problem for now.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups