protected void Page_Load(object sender, EventArgs e) { logic = new CardLogic(); logic.setDecks(1); int deckId = (int)Session["deckId"]; int deckIndex = logic.decks.FindIndex(x => x.deckId == deckId); logic.setCardsInActiveDeck(deckId); deckName.Text = "Deck Name: " + logic.decks[deckIndex].name; deckClass.Text = "Deck Class: " + logic.decks[deckIndex].playerClass; List<String> filePaths = logic.getCardImageUrls(); cardRepeater.DataSource = filePaths; cardRepeater.DataBind(); }