P
Peter
I have the following DataList and need to fromat the "ItemNumber" as '01)'
without the quotes.
How do I do that? ItemNumber is an Integer.
I am using C#
<aspataList ID="dlMDCD" runat="server">
<ItemTemplate>
<table>
<tr>
<td valign="top" align="left">
<asp:Label ID="lblReading" runat="server" Text='<%#
DataBinder.Eval(Container.DataItem, "ItemNumber") %>'></asp:Label>
</td>
<td>
<asp:TextBox ID="txtReading" runat="server" width="40px"
Text='<%# DataBinder.Eval(Container.DataItem, "Reading") %>'></asp:TextBox>
</td>
</tr>
</table>
</ItemTemplate>
</aspataList>
Thank You
Peter
without the quotes.
How do I do that? ItemNumber is an Integer.
I am using C#
<aspataList ID="dlMDCD" runat="server">
<ItemTemplate>
<table>
<tr>
<td valign="top" align="left">
<asp:Label ID="lblReading" runat="server" Text='<%#
DataBinder.Eval(Container.DataItem, "ItemNumber") %>'></asp:Label>
</td>
<td>
<asp:TextBox ID="txtReading" runat="server" width="40px"
Text='<%# DataBinder.Eval(Container.DataItem, "Reading") %>'></asp:TextBox>
</td>
</tr>
</table>
</ItemTemplate>
</aspataList>
Thank You
Peter