Пример #1
0
 private string GetVirtualPathForMode(string candidateName, DataBoundControlMode mode)
 {
     if (String.IsNullOrEmpty(candidateName))
     {
         return(null);
     }
     else
     {
         string templatePath = BuildEntityTemplateVirtualPath(candidateName, mode);
         return(_factory.FileExists(templatePath) ? templatePath : null);
     }
 }
        private string GetVirtualPathIfExists(string templateName, MetaColumn column, DataBoundControlMode mode)
        {
            // Build the path
            string virtualPath = BuildVirtualPath(templateName, column, mode);

            // Check if it exists
            if (_templateFactory.FileExists(virtualPath))
            {
                return(virtualPath);
            }

            // If not, return null
            return(null);
        }