I have a datalist that I am trying to have if the value of lastName is equal to zzzzzzzz then the text would be white. Otherwise it is a normal color. This is what I have so far which isn't write. I tried several varations but don't know how to check the value.
<asp:dataList ID="fstfloor" CellPadding="15" CellSpacing="10" GridLines= "none" RepeatColumns="3" RepeatDirection="Vertical" runat="server">
<itemtemplate>
<td>
<%# if Container.DataItem( "lastName" ) = "zzzzzzzz" Then %>
<font color="#FFFFFF">
<%# Container.DataItem( "lastName" ) %>
</font>
<% else %>
<%# Container.DataItem( "lastName" ) %>
<% end if %>
</td>
<td>
<%# Container.DataItem( "firstName" ) %>
</td>
<td>
<%# Container.DataItem( "phonenumber" ) %>
</td>
</itemtemplate>
</aspataList>
<asp:dataList ID="fstfloor" CellPadding="15" CellSpacing="10" GridLines= "none" RepeatColumns="3" RepeatDirection="Vertical" runat="server">
<itemtemplate>
<td>
<%# if Container.DataItem( "lastName" ) = "zzzzzzzz" Then %>
<font color="#FFFFFF">
<%# Container.DataItem( "lastName" ) %>
</font>
<% else %>
<%# Container.DataItem( "lastName" ) %>
<% end if %>
</td>
<td>
<%# Container.DataItem( "firstName" ) %>
</td>
<td>
<%# Container.DataItem( "phonenumber" ) %>
</td>
</itemtemplate>
</aspataList>