void rptOrderItems_ItemDataBound(object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e) { if ( e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem ) { Literal litProduct = (Literal)e.Item.FindControl("litProduct"); Literal litSubTitle = (Literal)e.Item.FindControl("litSubTitle"); int productId = ((OrderItem)e.Item.DataItem).ProductId; Product product = ProductHelper.GetProductFromList(lstProductsInOrder, productId); if (product != null) { litProduct.Text = ProductHelper.BuildProductLink(product); litSubTitle.Text = product.SubTitle; } } }