protected void btnBuy_Click(object sender, EventArgs e) { var productId = Convert.ToInt32(Page.RouteData.Values["id"]); var product = CatalogService.FindCatalogItem(productId); orderNumber = Guid.NewGuid().ToString("N"); var properties = new Dictionary <string, string>(); properties.Add("product_id", productId.ToString()); properties.Add("order_number", orderNumber); QueueService.BuyCatalogItem(product, properties); divOrdered.Visible = true; divOrderNumber.InnerText = $"Order no: {orderNumber}"; Telemetry.TrackEvent("eshop/product/buy", properties: properties); }