Export (0) Print
Expand All

SPField.GetFieldValueAsHtml Method

Windows SharePoint Services 3

Returns the field value in HTML format in order to render the field value directly on the page.

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

public virtual string GetFieldValueAsHtml(
	Object value
)

Parameters

value
Type: System.Object
An object that represents the value to convert.

Return Value

Type: System.String
A string that contains the value in HTML format.

The GetFieldValueAsHtml method is used for version history and other managed code rendering. This method is not used in Display forms, which use Collaborative Application Markup Language Core Schemas for field rendering to share common logic with field rendering in list views.

Community Additions

ADD
Show:
© 2014 Microsoft