/// <summary> /// Creates the application relative file path for the specified projection template. /// </summary> /// <param name="name">The name of the projection template to create the file path for.</param> /// <returns>The application relative file path of the projection template.</returns> public string CreateRelativeProjectionTemplateFilePath(string name) { string basePath = HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath); string directoryName = ProjectionTemplatesDirectoryPath.Replace(basePath, "").Replace(@"\", "/"); return(CreateRelativeProjectionFilePath(name, directoryName)); }
/// <summary> /// Creates the full file path for the specified projection template. /// </summary> /// <param name="name">The name of the projection template to create the file path for.</param> /// <returns>The full file path of the projection template.</returns> public string CreateProjectionTemplateFilePath(string name) { if (name.ToLower().IndexOf("ascx") == -1) { name = name + ".ascx"; } return(ProjectionTemplatesDirectoryPath.TrimEnd('\\') + @"\" + name); }