public void DrawProfilesModule() { var dataIO = new Profiles.Profile.Utilities.DataIO(); StringBuilder html = new StringBuilder(); using (var reader = dataIO.GetConceptTopJournal(base.RDFTriple)) { while (reader.Read()) { html.AppendFormat("<li><a href=\"javascript:alert('{0}')\">{1}</a></li>", reader["JournalTitle"].ToString(), reader["Journal"].ToString()); } reader.Close(); } // Hide section title if no Top Journals are returned if (html.ToString().Length == 0) { sectionTitle.Attributes.Add("style", "display: none;"); } else { imgQuestion.ImageUrl = Root.Domain + "/Framework/Images/info.png"; lineItemLiteral.Text = html.ToString(); } }