protected void LoadGenericE() { string pageNameBread = ""; MainContentGeneric generic_E = new MainContentGeneric(); DataSet dsgeneric_E= new DataSet(); StringBuilder sb = new StringBuilder(); Boolean ingreso = false; //--- //dsgeneric_A = generic_A.getAllGenericEByTypeId(Convert.ToInt32(GeneId), Convert.ToInt32(GeneDefaId)); dsgeneric_E = generic_E.Get_Site_Generic_E(Convert.ToInt32(GeneId)); sb.AppendLine("<div id=\"main-content\">"); foreach (DataTable table in dsgeneric_E.Tables) { foreach (DataRow row in table.Rows) { if (ingreso == false) { ingreso = true; sb.AppendLine("<div class=\"titleSupport\"><h1>" + row["GeneTitle"].ToString() + "</h1></div>"); pageNameBread = row["GeneTitle"].ToString(); Main_MasterPage m = (Main_MasterPage)Page.Master; m.pageTitleBar = pageNameBread + " - " + m.pageTitleBar; } pageName = row["GeneTitle"].ToString(); sb.AppendLine("<div class=\"boxPurchasingInfo\">"); sb.AppendLine("<div class=\"mainInfoResource wysiwig\">"); sb.AppendLine("<p><strong>" + row["GeneETitle"].ToString() + "</strong></p><br />"); sb.AppendLine(row["GeneELocation"].ToString()); sb.AppendLine(row["GeneEContent"].ToString()+"</br>"); //-- if (row["GeneELink"].ToString() != "") { sb.AppendLine("<br /><div class=\"bottonMore\">"); if (Convert.ToInt32(row["LinkType"].ToString()) == 1) sb.AppendLine("<a href=\"" + row["GeneELink"].ToString() + "\" target=\"_blank\">" + row["GeneELinkTitle"].ToString() + "</a>"); else sb.AppendLine("<a href=\"" + row["GeneELink"].ToString() + "\">" + row["GeneELinkTitle"].ToString() + "</a>"); sb.AppendLine("</div>"); } //-- sb.AppendLine("</div>"); sb.AppendLine("</div>"); } } sb.AppendLine("</div>"); PlaceHolder_Generic_E.Controls.Add(new LiteralControl(sb.ToString())); sb = null; dsgeneric_E = null; generic_E = null; Main_MasterPage main = (Main_MasterPage)Page.Master; if (Request["TypeGen"] != null) { main._site_breadLink += "<li><a href=resourcecenter.aspx?id=0>" + "Resource Center" + "</a></li>"; } else { main._site_breadLink += "<li><a href=# onClick=\"return false;\">" + "About " + SiteConstants.SiteName.ToString() + "</a></li>"; } main._site_breadLink += "<li class=\"last\"> <a href=# onClick=\"return false;\"><strong>" + pageNameBread + "</strong></a></li>"; }