IFrame: This content cannot be displayed in a frame IFrame: This content cannot be displayed in a frame asp.net asp.net

IFrame: This content cannot be displayed in a frame


use <meta http-equiv="X-Frame-Options" content="allow"> in the one to show in the iframe to allow it.


The X-Frame-Options is defined in the Http Header and not in the <head> section of the page you want to use in the iframe.

Accepted values are: DENY, SAMEORIGIN and ALLOW-FROM "url"


Use target="_top" attribute in anchor tag that will really work.