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. Refreshing an IFrame

Refreshing an IFrame

Scheduled Pinned Locked Moved ASP.NET
helpcsharpjavascripthtmlasp-net
2 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.
  • M Offline
    M Offline
    M J Jaya Chitra
    wrote on last edited by
    #1

    Dear All, I have an ASP.Net applicaiton in which, the user can set some preferences and based on that the data is generated as an html report and I kept it in the server with the name "Test.htm", then I am loading the same in an iframe in that page. In my development environment the iframe is refreshed with new data whenever I am clicking on the "Generate" button. But when I uploaded, the html report is generated fine but it is not refreshed in the iframe for that I used the following codes in the javascript: 1. MyFrame.document.location.reload(); 2. MyFrame.src = "Test.htm" 3. MyFrame.document.location.href="Test.htm" Can any one help me to get rid of this issue? Thanks a lot in advance.

    Best Regards, M. J. Jaya Chitra

    S 1 Reply Last reply
    0
    • M M J Jaya Chitra

      Dear All, I have an ASP.Net applicaiton in which, the user can set some preferences and based on that the data is generated as an html report and I kept it in the server with the name "Test.htm", then I am loading the same in an iframe in that page. In my development environment the iframe is refreshed with new data whenever I am clicking on the "Generate" button. But when I uploaded, the html report is generated fine but it is not refreshed in the iframe for that I used the following codes in the javascript: 1. MyFrame.document.location.reload(); 2. MyFrame.src = "Test.htm" 3. MyFrame.document.location.href="Test.htm" Can any one help me to get rid of this issue? Thanks a lot in advance.

      Best Regards, M. J. Jaya Chitra

      S Offline
      S Offline
      Sreedhar Mallipedda
      wrote on last edited by
      #2

      you can load the page from server side for that Iframe tag shoud be runat=server and in the server you can always keep this code like this in aspx page <iframe id="getData" height=600 width=300 runat=server scrolling=auto></iframe> and in .CS page getThreads.Attributes["getData"] = "Test.htm";

      Sree(Sreedhar)

      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