I know this isn’t possible, but what is the best alternative for wanting to do Response.Redirect from an iFrame, to redirect the parent page?
I know this isn’t possible, but what is the best alternative for wanting to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can not do this using ASP.NET. ASP.NET on server side can redirect incoming request and can’t know about a parent frame.
But if you want to redirect parent frame on some server side condition you can call JavaScript from server like this:
And of course you can use simple JavaScript window.parent.location = ‘http://yoursite.com’ on client side.