A
AAaron123
Is it posible to do checks within a asp:Repeater loop.
In the code that follows I like to write a blank line
instead of:
<%#Eval("Name")%>
- <%#CType(Eval("LastWriteTimeUtc"), DateTime).ToString("u")%>
- <%#Eval("Directory")%>
when <%#Eval("Name")%> returns "ZZ".
Can you tell me how to do that?
Thanks
...snip..
<table style="border-collapse: collapse; border: 2 yellow solid">
<thead>
<tr>
<td>
Name - LastWriteTime - Path
</td>
</tr>
</thead>
<asp:Repeater ID="RepeaterFilesSelected" runat="server">
<ItemTemplate>
<tbody>
<tr>
<td>
<%#Eval("Name")%>
- <%#CType(Eval("LastWriteTimeUtc"), DateTime).ToString("u")%>
- <%#Eval("Directory")%>
</td>
</tr>
</tbody>
</ItemTemplate>
</asp:Repeater>
</table>
In the code that follows I like to write a blank line
instead of:
<%#Eval("Name")%>
- <%#CType(Eval("LastWriteTimeUtc"), DateTime).ToString("u")%>
- <%#Eval("Directory")%>
when <%#Eval("Name")%> returns "ZZ".
Can you tell me how to do that?
Thanks
...snip..
<table style="border-collapse: collapse; border: 2 yellow solid">
<thead>
<tr>
<td>
Name - LastWriteTime - Path
</td>
</tr>
</thead>
<asp:Repeater ID="RepeaterFilesSelected" runat="server">
<ItemTemplate>
<tbody>
<tr>
<td>
<%#Eval("Name")%>
- <%#CType(Eval("LastWriteTimeUtc"), DateTime).ToString("u")%>
- <%#Eval("Directory")%>
</td>
</tr>
</tbody>
</ItemTemplate>
</asp:Repeater>
</table>