Thursday, 26 June 2014

This content cannot be displayed in a iframe

sharepoint page viewer this content cannot be displayed in a frame
Error: "This content cannot be displayed in a frame"
Solution:
Open the .aspx page where you are adding iframe using SharePoint designer.
Add below tag in the source page.
<WebPartPages:AllowFraming runat="server" />

Source page mean: The page which you are using in iFrame.
Not the page where iFrame is added.