flaviorodrigues
Power Member
<asp:Label ID="coiso1" runat="server" Text='<%# Eval("contador") %>'></asp:Label>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringmarcas %>"
SelectCommand="SELECT COUNT(*) as contador FROM noticias">
</asp:SqlDataSource>
p que esta errado neste codigo? quero contar o total de noticias na tabela!
ajudem me
obrigado
flavio
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringmarcas %>"
SelectCommand="SELECT COUNT(*) as contador FROM noticias">
</asp:SqlDataSource>
p que esta errado neste codigo? quero contar o total de noticias na tabela!
ajudem me
obrigado
flavio