I am trying to format a datalist with a css style.
Trouble is i want the first two elements styled one way and the rest another, Like so:
Joe Blow
1234 Street
Nowhere, NW
Do I have to trap the ItemCreated event and handle it that way? If so how do I determine when the item being created is the one I want.
The Datalist is:
<asp:datalist
id=dlstNewMem
style="Z-INDEX: 102; LEFT: 32px; POSITION: absolute; TOP: 256px"
runat="server"
CellSpacing="10"
RepeatDirection="Horizontal"
RepeatColumns="2">
<ItemTemplate>
<table>
<tr>
<td><%# Container.DataItem( "FirstName" )%> <%# Container.DataItem( "LastName" )%></td>
</tr>
<tr>
<td><%# Container.DataItem( "Title" )%></td>
</tr>
<tr>
<td><%# Container.DataItem( "Phone" )%></td>
</tr>
<tr>
<td><%# Container.DataItem( "eMailLogin" )%></td>
</tr>
</table>
</ItemTemplate>
<SeparatorTemplate>
<hr>
</SeparatorTemplate>
</asp:datalist></form>
Trouble is i want the first two elements styled one way and the rest another, Like so:
Joe Blow
1234 Street
Nowhere, NW
Do I have to trap the ItemCreated event and handle it that way? If so how do I determine when the item being created is the one I want.
The Datalist is:
<asp:datalist
id=dlstNewMem
style="Z-INDEX: 102; LEFT: 32px; POSITION: absolute; TOP: 256px"
runat="server"
CellSpacing="10"
RepeatDirection="Horizontal"
RepeatColumns="2">
<ItemTemplate>
<table>
<tr>
<td><%# Container.DataItem( "FirstName" )%> <%# Container.DataItem( "LastName" )%></td>
</tr>
<tr>
<td><%# Container.DataItem( "Title" )%></td>
</tr>
<tr>
<td><%# Container.DataItem( "Phone" )%></td>
</tr>
<tr>
<td><%# Container.DataItem( "eMailLogin" )%></td>
</tr>
</table>
</ItemTemplate>
<SeparatorTemplate>
<hr>
</SeparatorTemplate>
</asp:datalist></form>