void Application_Start(object sender, EventArgs e) { try { ArtGalleryDS.SiteDataTable table = SiteDL.Get(); if (table.Rows.Count != 1) { throw new Exception("Could not get site information"); } Application["logo"] = table[0].LogoPath; Application["metatags"] = table[0].Metatags; Application["email"] = table[0].email; } catch { Response.Redirect("~/ErrorPage.aspx"); } }
public static string GetLogo() { ArtGalleryDS.SiteDataTable table = Get(); return(table[0].LogoPath); }