Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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.

PageViewerWebPart Class

Windows SharePoint Services 3

Displays content from a linked Web Page, folder, or file. This Web Part renders its content within an IFRAME element.


Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

<SupportsAttributeMarkupAttribute(True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class PageViewerWebPart _
	Inherits WebPart _
	Implements IDesignTimeHtmlProvider
Dim instance As PageViewerWebPart

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

© 2015 Microsoft