<ul id="ulx" runat="server">
for (int i = 0; i < dt.Rows.Count; i++) { string url = string.Empty; url = dt.Rows[i]["ProductImage"].ToString(); string inputString = String.Format(@"""{0}""", url); HtmlGenericControl li = new HtmlGenericControl(); li.TagName = "li"; li.InnerHtml = "<a href=" + " product_id="].ToString() + ">" + "<img src=" + inputString + " width='" + "100" + "' height='" + "75" + "' runat='"+"Server"+"'s/>" + "</a>"; ulx.Controls.Add(li); }
"<img src='" + inputString + "' width='" + "100" + "' height='" + "75" + "' runat="'""+"Server"+"'s/>"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)