I am trying to build unordered list from c# backend. This is the structure I am trying to achieve:\[code\] <li><a href="http://stackoverflow.com/questions/14061727/url.com"><img src="http://stackoverflow.com/questions/images/most/most05.jpg" alt="" /><br />LinkName</a></li>\[/code\]Using this code:\[code\]foreach (Product prod in productList) { HtmlGenericControl li = new HtmlGenericControl("li"); products.Controls.Add(li); string productURL = SEOHelper.GetProductUrl(prod); HtmlGenericControl anchor = new HtmlGenericControl("a"); anchor.Attributes.Add("href", productURL); HtmlGenericControl image = new HtmlGenericControl("img"); var productPicture = prod.DefaultProductPicture; if (productPicture != null) { image.Attributes.Add("src", PictureManager.GetPictureUrl(productPicture.Picture, 110, true)); } else { image.Attributes.Add("src", PictureManager.GetPictureUrl(productPicture.Picture, 110, true)); } anchor.InnerText = prod.Name; li.Controls.Add(image); li.Controls.Add(anchor); } \[/code\]I am getting this structure:\[code\] <li><img src="http://localhost:22621/images/thumbs/0000724_110.jpg"></img><a href="http://stackoverflow.com/questions/14061727/url.com">LinkName</a></li>\[/code\]Can someone please help me how to tweak the code to achieve what I want exactly?Thanks, Laziale