public static void ShowArtigosEditor(string cd_categoria) { string strCss = ""; DataTable dt = Artigo.Listar(cd_categoria); for (int i = 0; i < dt.Rows.Count; i++) { strCss = strCss + "<li><span><a href='Editor.aspx?cd=" + dt.Rows[i]["cd_artigo"].ToString() + " '>" + dt.Rows[i]["titulo"].ToString() + "</a>"; strCss = strCss + "<a href='AdmArquivos.aspx?cd=" + dt.Rows[i]["cd_artigo"].ToString() + " '>" + " (Arquivos)" + "</a>"; strCss = strCss + "<a href='AdmExcluiArtigo.aspx?cd=" + dt.Rows[i]["cd_artigo"].ToString() + " '>" + " (Excluir)" + "</a>"; strCss = strCss + "</span></li>"; } HttpContext.Current.Response.Write(strCss); }
public static void ShowArtigos(string cd_categoria) { string strCss = ""; strCss = strCss + "<ol>"; DataTable dt = Artigo.Listar(cd_categoria); for (int i = 0; i < dt.Rows.Count; i++) { strCss = strCss + "<li><span><a href='ArtigoNaIntegra.aspx?cd=" + dt.Rows[i]["cd_artigo"].ToString() + " '>" + dt.Rows[i]["titulo"].ToString() + "</a></span></li>"; } strCss = strCss + "</ol>"; HttpContext.Current.Response.Write(strCss); }