Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPField.GetFieldValueAsHtml method

Gets 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

The value to convert.

Return value

Type: System.String
The value in HTML format.

Use this method for version history and other managed code rendering. Do not use this method in Display forms, which use Collaborative Application Markup Language (CAML) for field rendering to share common logic with field rendering in list views.

Show:
© 2015 Microsoft