protected void LoadHeadMenu() { Header head = new Header(); DataSet dsContentGroup = new DataSet(); StringBuilder sb = new StringBuilder(); dsContentGroup = head.getAllContentGroups(); sb.AppendLine("<div id=\"topRight\" >"); sb.AppendLine("<ul>"); foreach (DataTable table in dsContentGroup.Tables) { foreach (DataRow row in table.Rows) { sb.AppendLine("<li><a href=\"" + CurrentChilPage + "?ci=" + row["ContId"].ToString() + "\" class=\"" + (row["ContId"].ToString() == ContentId ? "current" : "") + "\">" + row["ContTitle"].ToString() + "</a></li>"); //sb.AppendLine("" + row["cat"].ToString() + ""); } } sb.AppendLine("<li><a href=\"#\" class=\"request\">Request a Quote</a></li>"); sb.AppendLine("</ul>"); sb.AppendLine("</div>"); PlaceHolder_topRight.Controls.Add(new LiteralControl(sb.ToString())); head = null; }
protected void LoadHeadMenu() { Header head = new Header(); DataSet dsContentGroup = new DataSet(); StringBuilder sb = new StringBuilder(); //--- int ContSelected = 1; dsContentGroup = head.getAllContentGroups(); sb.AppendLine("<ul>"); foreach (DataTable table in dsContentGroup.Tables) { foreach (DataRow row in table.Rows) { sb.AppendLine("<li><a href=\"#\" class=\"" + (row["ContId"].ToString() == ContSelected.ToString() ? "current" : "") + "\">" + row["ContTitle"].ToString() + "</a></li>"); //sb.AppendLine("" + row["cat"].ToString() + ""); } } sb.AppendLine("<li><a href=\"#\" class=\"request\">Request a Quote</a></li>"); sb.AppendLine("</ul>"); topRight.InnerHtml = sb.ToString(); }
protected void LoadHeadMenu() { Header head = new Header(); DataSet dsContentGroup = new DataSet(); StringBuilder sb = new StringBuilder(); dsContentGroup = head.getAllContentGroups(); sb.AppendLine("<div id=\"topRight\" >"); sb.AppendLine("<ul>"); foreach (DataTable table in dsContentGroup.Tables) { foreach (DataRow row in table.Rows) { sb.AppendLine("<li><a href=\"home.aspx?ci=" + row["ContId"].ToString() + "\" class=\"" + (row["ContId"].ToString() == ContentId ? "current" : "") + "\">" + row["ContTitle"].ToString() + "</a></li>"); } } sb.AppendLine("<li><a href=\"http://quoteme.sunburst.com\" target=\"_blank\" class=\"request\">Request a <b>Quote</b></a></li>"); sb.AppendLine("</ul>"); sb.AppendLine("</div>"); PlaceHolder_topRight.Controls.Add(new LiteralControl(sb.ToString())); head = null; }