protected void Page_Load(object sender, EventArgs e) { int number; string markupHTML = ""; List <Product> allMaleJacketsList = new List <Product>(); WbsDAL wbs = new WbsDAL(); wbs.OpenConnection(ConfigurationManager.ConnectionStrings["WebbShopConnectionString"].ConnectionString); allMaleJacketsList = wbs.GetJacketsMan(); foreach (Product p in allMaleJacketsList) { number = Decimal.ToInt32(p.PriceUnit); markupHTML += $"<div class=\"col-md-3 box\">" + $"<div class =\"thumbnail\" >" + $"<img src =\"/Images/{p.ImageURL}\" alt =\"Generic placeholder thumbnail\">" + $"</div>" + $"<div class=\"cover left\">" + $"<div class = \"caption\">" + $"<h3>{p.ProductBrand}</h3>" + $"<h2 class=\"title\">{p.ProductBrand}</h2>" + $"</div>" + $"<div class=\"btn\">" + $"<a href=\"ProductInformation.aspx?ProductID={p.ProductID}\">More Info<br />" + $"{number}SEK" + $"</a>" + $"</div>" + $"</div>" + $"</div>"; } InsertedMaleJackets.InnerHtml = markupHTML; }