SPMobileFieldLabel.DefaultTemplateName Property

Gets the ID of the RenderingTemplate template that defines how the field label is rendered.

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


Public Overrides ReadOnly Property DefaultTemplateName As String

Dim instance As SPMobileFieldLabel
Dim value As String

value = instance.DefaultTemplateName
public override string DefaultTemplateName { get; }

Property Value

Type: System.String
A String that represents the value of the ID attribute of a RenderingTemplate element in the file MobileDefaultTemplates.ascx, which is located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES.


If the current page is not the Display form and the field is required, the DefaultTemplateName property returns "MobileRequiredFieldLabel"; otherwise it returns "MobileDefaultFieldLabel".

See Also


SPMobileFieldLabel Class

SPMobileFieldLabel Members

Microsoft.SharePoint.MobileControls Namespace