protected void Page_Load(object sender, EventArgs e) { string inCatalogObjectId = Request.QueryString["ObjectId"]; if (!String.IsNullOrEmpty(inCatalogObjectId)) { ShoppingCartActions shoppingCart = new Logic.ShoppingCartActions(); shoppingCart.AddToCart(inCatalogObjectId); } else { throw new Exception("No Catalog Item Received."); } Response.Redirect("ShoppingCart.aspx"); }