protected void Page_Load(object sender, EventArgs e)
 {
     string inGCnum = Request["GC"];
     long GCnum = 0;
     DataClassesAlbertDataContext db = new DataClassesAlbertDataContext();
     GiftCard giftCard = new GiftCard();
     GCnum = Convert.ToInt64(inGCnum.Remove(inGCnum.Length - 1));
     try
     {
         giftCard = (from gc in db.GiftCards where gc.BarCode == GCnum select gc).Single();
         string companyName = "";
         if (giftCard.CompanyID != "00000000-0000-0000-0000-000000000000" && giftCard.CompanyID != "")
         {
             try
             {
                Company comp = (from c in db.Companies where c.UserID.ToString() == giftCard.CompanyID select c).Single();
                companyName = comp.Name;
             }
             catch { }
         }
         GoDineEmails.sendSuccessEmail(giftCard, companyName);
         lblinfo.Text = "Email sent";
     }
     catch
     {
     }
 }
 partial void DeleteGiftCard(GiftCard instance);
 partial void UpdateGiftCard(GiftCard instance);
 partial void InsertGiftCard(GiftCard instance);