Provides a control that displays administrative links for blogs. This class cannot be inherited.
Inheritance Hierarchy
Namespace: Microsoft.SharePoint.WebPartPages 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. . :: . BlogAdminWebPart
System.Web.UI
System.Web.UI.WebControls
System.Web.UI.WebControls
System.Web.UI.WebControls.WebParts
System.Web.UI.WebControls.WebParts
Microsoft.SharePoint.WebPartPages
Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class BlogAdminWebPart _
Inherits WebPart _
Implements IListWebPartDim instance As BlogAdminWebPart[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class BlogAdminWebPart : WebPart,
IListWebPart Remarks
The Hidden property cannot be set to true if the Web Part'sIsStandAlone property is set to true. The Visible property cannot be set to false if the Web Part's IsStandAlone property is set to true. If either of these conditions occurs, Microsoft ASP.NET will throw an exception.
Set these properties in the OnLoad event so it is after the viewState has been applied. but before OnPreRender() since OnPreRender() is not called if Visible=false