seafordcrownfc
01-02-2008, 11:03 AM
Hi everyone, I currently have the following repeater which is working perfectly.
<asp:Repeater ID="Repeater4" runat="server" DataSourceID="AccessDataSource4" >
<ItemTemplate>
Goals : <%# Eval ("goals") %>
</ItemTemplate>
</asp:Repeater>
At the moment it returns Goals : then the number e.g.
Goals : 2
Goals : 31
But if a player has '0' Goals it returns ...
Goals :
A blank space. How do I make it so that if a player does have 0 goals, then the number '0' is displayed ?
Thanks in advance.
Happy New Year.
<asp:Repeater ID="Repeater4" runat="server" DataSourceID="AccessDataSource4" >
<ItemTemplate>
Goals : <%# Eval ("goals") %>
</ItemTemplate>
</asp:Repeater>
At the moment it returns Goals : then the number e.g.
Goals : 2
Goals : 31
But if a player has '0' Goals it returns ...
Goals :
A blank space. How do I make it so that if a player does have 0 goals, then the number '0' is displayed ?
Thanks in advance.
Happy New Year.