protected void LoadFeatured() { string strFolder = "images"; MainContent feature = new MainContent(); DataSet dsfeature = new DataSet(); System.Text.StringBuilder sb = new System.Text.StringBuilder(); System.Text.StringBuilder sbImages = new System.Text.StringBuilder(); System.Text.StringBuilder sbLink = new System.Text.StringBuilder(); //--- dsfeature = feature.getAllFeature(); sb.AppendLine("<span id=\"loading\">Loading</span>"); sb.AppendLine("<ul id=\"pictures\">"); foreach (DataTable table in dsfeature.Tables) { foreach (DataRow row in table.Rows) { //sb.AppendLine("<li><a href=\"#\" class=\"" + (row["ContId"].ToString() == ContSelected.ToString() ? "current" : "") + "\">" + row["ContTitle"].ToString() + "</a></li>"); sbImages.AppendLine("<li><img src=\"" + strFolder + "/" + row["FeatFile"].ToString() + "\" alt=\"" + row["FeatAlt"].ToString() + "\" title=\"" + row["FeatTitle"].ToString() + "\" /></li>"); sbLink.AppendLine("<li><a href=\"" + row["FeatLink"].ToString() + "\">" + row["FeatTitle"].ToString() + "</a></li>"); } } sb.Append(sbImages.ToString()); sb.AppendLine("</ul>"); sb.AppendLine("<ul id=\"menu\">"); sb.Append(sbLink.ToString()); sb.AppendLine("</ul>"); sb.AppendLine("<input style=\"display: none\" type=\"checkbox\" name=\"auto\" checked=\"checked\" id=\"option-auto\" />"); slideshow.InnerHtml = sb.ToString(); }