Classic ASP, ASP.NET, IFrames and response.redirect issue....
Posted
by Abdullah Ahmed
on Stack Overflow
See other posts from Stack Overflow
or by Abdullah Ahmed
Published on 2009-02-18T16:59:43Z
Indexed on
2010/05/15
8:34 UTC
Read the original article
Hit count: 332
A client has an asp page with an iframe. The Iframe loads an asp.net page inside the asp classic page.
The ASP.NET page is responsible for connecting to a webservice, displaying some data, and then when the user clicks a button it does a response.redirect another classic asp page.
Since the asp.net page is in an iframe, the asp page loads inside the iframe when ideally it should be taking over the entire page.
I have tried putting javascript in the final asp page to break out of iframes but it does not seem to fire.
I tried doing onClientCLick() on the asp.net page and making it break out of the iframe using the following javascript
top.location = self.location.href
But since that sets the location it seems to refresh the page , breaks out of the iframe but does not fire the serverside onclick event which would then perform the backend calculations and do response.redirect.
Any ideas on how I can make sure that the final asp page does not appear inside the iframe and breaks out of it ?
© Stack Overflow or respective owner