SocialCommentControl.OnPreRender Method
Handles the PreRender event.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
Protected Overrides Sub OnPreRender ( _
e As EventArgs _
)
'Usage
Dim e As EventArgs
Me.OnPreRender(e)
protected override void OnPreRender(
EventArgs e
)
Parameters
e
Type: System.EventArgsThe data for the event.
Remarks
This override registers the Portal.js and SocialComment.js scripts in addition to custom scripts for viewing and modifying the social notes associated with the current page or identified URI. If the user is anonymous, the control will be hidden.