newtelligence.DasBlog.Web.SiteConfig.GetConfigPathFromCurrentContext C# (CSharp) Method

GetConfigPathFromCurrentContext() public static method

public static GetConfigPathFromCurrentContext ( ) : string
return string
        public static string GetConfigPathFromCurrentContext()
        {
            return SiteUtilities.MapPath("~/SiteConfig/");
        }

Usage Example

        protected void buttonCreate_Click(object sender, System.EventArgs e)
        {
            if (textNewFileName.Text.Length > 0)
            {
                // Get the requested file name to create and stip off any extra directories
                string fileName = textNewFileName.Text;
                fileName = Path.GetFileName(fileName);

                // Double check that there is an extension.  If not, tag on opml
                if (Path.GetExtension(fileName) == String.Empty)
                {
                    fileName = fileName + ".opml";
                }

                // Add this to the list of current file names and select it as active
                listFiles.Items.Add(fileName);
                listFiles.SelectedValue = fileName;
                Session["newtelligence.DasBlog.Web.EditBlogRollBox.baseFileName"] = baseFileName = fileName;

                // This will created during LoadOutline, but have to clear it out first, otherwise this new blogroll
                // will get a copy of the currently selected one, instead of starting fresh
                opmlTree = null;

                LoadOutline(Path.Combine(SiteConfig.GetConfigPathFromCurrentContext(), baseFileName));
                BindGrid();

                textNewFileName.Text = "";
            }
        }
All Usage Examples Of newtelligence.DasBlog.Web.SiteConfig::GetConfigPathFromCurrentContext