ebco
06-09-2003, 08:07 AM
I am using Repeater control to access datafrom database.
my data is showing me proplerly on this
<ItemTemplate>
<tr style="background-color:#ffecd8">
<td><%# DataBinder.Eval(Container.DataItem, "DBname") %></td>
<td><%# DataBinder.Eval(Container.DataItem, "DBphone") %></td>
<td><%# DataBinder.Eval(Container.DataItem, "DBtraining") %></td>
</tr>
</ItemTemplate>
But what if i want to check the field whether it is blank and if blank i want to put "-" in that cell.?
my data is showing me proplerly on this
<ItemTemplate>
<tr style="background-color:#ffecd8">
<td><%# DataBinder.Eval(Container.DataItem, "DBname") %></td>
<td><%# DataBinder.Eval(Container.DataItem, "DBphone") %></td>
<td><%# DataBinder.Eval(Container.DataItem, "DBtraining") %></td>
</tr>
</ItemTemplate>
But what if i want to check the field whether it is blank and if blank i want to put "-" in that cell.?