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