FieldLabel.DefaultDisplayTemplateName Property
Gets the name of the default rendering template for display mode.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected Overridable ReadOnly Property DefaultDisplayTemplateName As String
Get
'Usage
Dim value As String
value = Me.DefaultDisplayTemplateName
protected virtual string DefaultDisplayTemplateName { get; }
Property Value
Type: System.String
A String that names a rendering template.
Remarks
The default implementation returns "FieldLabelForDisplay", which is the value of the ID attribute of a <RenderingTemplate> element in an aspx file in the folder %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\template\controltemplates. It identifies the RenderingTemplate object that can be used as a fallback if the DisplayTemplateName() property is called before it has been set or if for any reason the template it names cannot be used.