That is a common issue while working with IFrames. One solution to this problem can be Javascript.
Add a Javascript like below:
if (parent.document) {
parent.document.location.href='http://www.google.com';
}
In ASP .NET, register above javascript statement using
Page.RegisterStartupScript( ) method


