public void getThreads() { DataTable DT = theCake.getThreads(Int32.Parse(Request.QueryString["ID"].ToString())); foreach (DataRow DR in DT.Rows) { Thread thrd = new Thread(Int32.Parse(DR["threadID"].ToString())); string threadItem = ""; threadItem += "<div style=\"border:1px solid #646469;\">" + "<div align=\"center\">" + "<section style=\"display:table; width:90%; margin:10px; text-align:left;\">" + "<section style=\"display:inline-block; width:90%; height:100%; vertical-align:top;\">" + "<div style=\"font-variant:small-caps; font-size:1.2em;\">" + "<a href=\"Threads.aspx?ID=" + thrd.get_threadID().ToString() + "\">" + thrd.get_thread_Name() + "</a>" + "</div>" + "<hr style=\"margin:2px;\" />" + "<div style=\"font-size:.9em;\">" + thrd.get_thread_Description() + "</div>" + "<br />" + "<div style=\"font-size:.6em;\">" + "created on " + thrd.get_createdTimestamp().ToShortDateString() + " by " + theCake.getUserAlias(thrd.get_createdBy()) + "." + "</div>" + "</section>" + "<section style=\"display:inline-block; width:10%; height:100%;\">" + "<div class=\"widget pull-right\" style=\"width:100%;\">" + "<div align=\"center\">" + "<p><strong>Post Count</strong></p>" + thrd.count().ToString() + "</div>" + "</div>" + "</section>" + "</section>" + "</div>" + "</div>"; lit_ThreadList.Text += threadItem; } }