Gets or sets the name of the control's rendering template.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
The property returns the value of the DefaultTemplateName property unless a specific value has been set for the property.Notes to callers
Typically, calling code should set the property to the value of the ID attribute of a <RenderingTemplate> element in an .ascx 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 renders the control.
If you want to render the control differently in certain contexts, such as on particular forms, you can designate an alternative template by using the AlternateTemplateName property. Avoid using the DefaultTemplateName property for this purpose; this will enhance your code's readability and its consistency with other classes that are derived from the TemplateBasedControl class.