Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
'Declaration
Public Overridable Function GetFieldValueAsHtml ( _
value As Object _
) As String
'Usage
Dim instance As SPField
Dim value As Object
Dim returnValue As String
returnValue = instance.GetFieldValueAsHtml(value)
public virtual string GetFieldValueAsHtml(
Object value
)
value
Type: System.Object
The value to convert.
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.
Please sign in to use this experience.
Sign in