How do you tell if your page is running in an iFrame in .Net?

Posted by runxc1 Bret Ferrier on Stack Overflow See other posts from Stack Overflow or by runxc1 Bret Ferrier
Published on 2010-04-28T14:49:13Z Indexed on 2010/04/28 14:53 UTC
Read the original article Hit count: 178

Filed under:
|
|
|

I have an ASPX page that is sometimes loaded into an iFrame in my application and sometimes not. From the code behind how can you detect if your page is being loaded from an iFrame.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#