protected void LoadNav(string filename) { // import the LGNL from /nav/lgnl.xml if (File.Exists(Request.MapPath(filename))) { // do the import... EsdNavParser parser = new EsdNavParser(); parser.Load(Request.MapPath(filename)); parser.ParseNav(false); navstatus.Text = string.Format("Import Completed... {0} Page Created <em>{1}</em>", parser.NodeCount, parser.LastError); } }
protected void LoadESDNav(string navFile) { string filepath = Request.MapPath(navFile); if (File.Exists(filepath)) { EsdNavParser parser = new EsdNavParser(); parser.Load(filepath); parser.ParseNav(false); navstatus.Text = string.Format("Import completed : {0} pages created <em>{1}</em>", parser.NodeCount, parser.LastError); } else { navstatus.Text = "Import failed, we couldn't find the import file"; } }
protected void LoadESDNav(string navFile) { string filepath = Request.MapPath(navFile); if ( File.Exists(filepath) ) { EsdNavParser parser = new EsdNavParser(); parser.Load(filepath); parser.ParseNav(false); navstatus.Text = string.Format("Import completed : {0} pages created <em>{1}</em>", parser.NodeCount, parser.LastError); } else { navstatus.Text = "Import failed, we couldn't find the import file"; } }