Пример #1
0
 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");
     }
 }
Пример #2
0
 public static string GetLogo()
 {
     ArtGalleryDS.SiteDataTable table = Get();
     return(table[0].LogoPath);
 }