public AjaxControlToolkit.CascadingDropDownNameValue[] GetDropDownTemplates(string knownCategoryValues, string category)
{
List<Template> templates = TemplateManager.GetTemplates(CMSContext.PortalID, CMSContext.LanguageID);
List<AjaxControlToolkit.CascadingDropDownNameValue> cascadingList = new List<AjaxControlToolkit.CascadingDropDownNameValue>();
foreach (Template item in templates)
{
cascadingList.Add(new AjaxControlToolkit.CascadingDropDownNameValue(item.Name, item.ID.ToString()));
}
return cascadingList.ToArray();
}
}