SPBoundField.GetPropertyValueAsHtml Method
Retrieves a property value as a string of HTML markup that will display the field value in a browser.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected Function GetPropertyValueAsHtml ( _
dataItem As Object, _
dataFieldName As String _
) As String
'Usage
Dim dataItem As Object
Dim dataFieldName As String
Dim returnValue As String
returnValue = Me.GetPropertyValueAsHtml(dataItem, _
dataFieldName)
protected string GetPropertyValueAsHtml(
Object dataItem,
string dataFieldName
)
Parameters
dataItem
Type: System.ObjectThe object that contains the data item from which the property value is obtained.
dataFieldName
Type: System.StringThe string that contains the data item field name from which the property value is obtained.
Return Value
Type: System.String
The string that contains the HTML markup that will display the field value in a browser.