Documentation > CMS Template API Library > Asset > TemplateId
TemplateId
Gets the template id. This is the id of the folder holding ASP or C# template files that run at various times for this asset.
Type
System.Int32
Value
The template id.
Code Example
C#
Sample:
Asset myAsset = Asset.Load("/PathTo/Asset"); if(myAsset.IsLoaded) { Out.WriteLine("Template ID: " + myAsset.TemplateId); }