Compartilhar via


BaseFieldControl.RenderFieldForDisplay Method

Renders the field for noneditable display.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Overridable Sub RenderFieldForDisplay ( _
    output As HtmlTextWriter _
)
'Usage
Dim output As HtmlTextWriter

Me.RenderFieldForDisplay(output)
protected virtual void RenderFieldForDisplay(
    HtmlTextWriter output
)

Parameters

Remarks

The default implementation renders the field as it is rendered on a list view page. The DisplayTemplate is used, if it is not a null reference (Nothing in Visual Basic). If it is a null reference (Nothing in Visual Basic), the schema of the list field is used.

Override the default implementation only when you need the field to render differently on a display form from how it renders on a list view.

See Also

Reference

BaseFieldControl Class

BaseFieldControl Members

Microsoft.SharePoint.WebControls Namespace