protected void linkAddToCart_Click(object sender, EventArgs e) { int artWorkId = Convert.ToInt32(_idToAdd); if (artWorkId > 0) { SessionHandler.AddToUsersSession(SessionHandler.Cart, artWorkId); } }
/// <summary> /// Add the current artists id to the favourites /// </summary> /// <param name="o"></param> /// <param name="e"></param> protected void linkFaves_ClickEvent(object o, EventArgs e) { if (TypeOfFave == ARTIST) { SessionHandler.AddToUsersSession(SessionHandler.Artist, IdToAdd); } else if (TypeOfFave == ARTWORK) { SessionHandler.AddToUsersSession(SessionHandler.ArtWork, IdToAdd); } //addedBadge.Style["display"] = "block"; //reload the page so the faves will show up in the view faves modal Response.Redirect(Request.RawUrl); }