Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TemplateBasedControl.DefaultAlternateTemplateName property

Gets the name of the default alternate rendering template.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
protected virtual string DefaultAlternateTemplateName { get; }

Property value

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

Notes to inheritors

The default implementation always returns a null reference (Nothing in Visual Basic).

In derived classes, the DefaultAlternateTemplateName property contains the value of the ID attribute of a <RenderingTemplate> element in an .aspx file that is located in the following folder:

%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\template\controltemplates

The ID attribute identifies the RenderingTemplate object that can be used as a fallback template if the AlternateTemplateName property is called before it has been set or, if for any reason, the template it names cannot be used.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.