|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Displays content from a linked Web Page, folder, or file. This Web Part renders its content within an IFRAME element.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SupportsAttributeMarkupAttribute(true)] [AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)] public sealed class PageViewerWebPart : WebPart, IDesignTimeHtmlProvider
Use this Web Part to incorporate existing content (such as Web sites or documents) into a Web Part. This Web Part allows you to isolate a Web Part from the rest of the Web Part Page. The IFRAME element prevents script running in the Web Part from interfering with other Web Parts on the same page. The Page Viewer IFRAME element also allows you to display pages that contain a <Form> tag. Finally, this Web Part allows you to retrieve data from a server that requires authentication. In this case, the Page Viewer Web Part forwards authentication credentials from the client.