Share via


PageViewerWebPart Class

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

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      System.Web.UI.WebControls.Panel
        System.Web.UI.WebControls.WebParts.Part
          System.Web.UI.WebControls.WebParts.WebPart
            Microsoft.SharePoint.WebPartPages.WebPart
              Microsoft.SharePoint.WebPartPages.PageViewerWebPart

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

Syntax

<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
[SupportsAttributeMarkupAttribute(true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class PageViewerWebPart : WebPart, 
    IDesignTimeHtmlProvider

Remarks

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.

Thread Safety

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

See Also

Reference

PageViewerWebPart Members

Microsoft.SharePoint.WebPartPages Namespace