Click here to Skip to main content
15,749,039 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am showing my RDLC reports in an iframe . when i download my report to client then i want my previous page back. But iframe is not allowing me to do this.
I want to close iframe thourgh html remaining inside the iframe and want my control to previous page
but iframe is giving me blank page when I am closing it
can anyone help?

            lt;script type="text/javascript">
            function showItem(url) {
             function closeIframe()
              var iframe = parent.document.getElementById('HtmlFrameDiv');
              var iframe2 = parent.document.getElementById('HtmlFrame'); 


            <a href="java<!-- no -->script: closeIframe()">Close</a> 

            <p>Clicking close will close this window.</p>
            <a           href="parentNode.removeChild(window.parent.document.getElementById('iframeElement'))">Close</a>" +


You can use Hyperlink||Button on html remaining inside the iframe, that allow to navigate your previous page by link naviagteUrl || "onclick" response.redirect("yourpre-page.aspx").
Share this answer
the thing u have provided doesnot work for me
and where to use response.redirect i am doing with iframe and behind iframe i am using silverlight
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900