GetTemplateFiles() public method

Returns all template files in the template folder.
public GetTemplateFiles ( HttpServerUtility server, string templateType, string templateLocation ) : IEnumerable
server System.Web.HttpServerUtility
templateType string
templateLocation string
return IEnumerable
示例#1
0
        /// <summary>
        /// Bind the template files from the given template location
        /// </summary>
        /// <param name="TemplateType">The template type</param>
        /// <param name="TemplateLocation">The template location</param>
        /// <param name="TemplateDropDown">The template dropdown to databind</param>
        private void BindTemplateFiles(string TemplateType, string TemplateLocation, DropDownList TemplateDropDown)
        {
            var tm = new Internal.TemplateManager(App);

            TemplateDropDown.DataSource = tm.GetTemplateFiles(Server, TemplateType, TemplateLocation);
            TemplateDropDown.DataBind();
        }