R
RN1
<aspataGrid.........>
<asp:TemplateColumn HeaderText="DURATION">
<ItemTemplate>
<asp:Label ID="lblDuration" runat="server"><%#
Container.DataItem("Duration") %></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
The values I am getting from the database for this Label are, say,
109:15, 34:50. The problem is if the value is, say, 18:0, I want to
display it as 18:00 instead of 18:0.
How do I do it?
Thanks,
Ron
<asp:TemplateColumn HeaderText="DURATION">
<ItemTemplate>
<asp:Label ID="lblDuration" runat="server"><%#
Container.DataItem("Duration") %></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
The values I am getting from the database for this Label are, say,
109:15, 34:50. The problem is if the value is, say, 18:0, I want to
display it as 18:00 instead of 18:0.
How do I do it?
Thanks,
Ron