Share via


FileField.DefaultAlternateTemplateName Property

Gets the name of the default alternate rendering template used when the control mode is not New.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Overrides ReadOnly Property DefaultAlternateTemplateName As String
    Get
'Usage
Dim value As String

value = Me.DefaultAlternateTemplateName
protected override string DefaultAlternateTemplateName { get; }

Property Value

Type: System.String
A String that names a rendering template.

Remarks

This override returns "FileFieldEdit", 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 template that can be used as a fallback if the AlternateTemplateName property is called before it is set or if for any reason the template it names cannot be used.

See Also

Reference

FileField Class

FileField Members

Microsoft.SharePoint.WebControls Namespace