P
Peter Kirk
Hi
I have a textbox generated in a "repeater". The repeater is looping over an
array of Port objects, and displaying various of its attributes. One
attribute is a DateTime object which I want displayed in the textbox. But
how do I present an empty string in the textbox if the DateTime is MinValue?
How do I check the value while the repeater is iterating?
<asp:TextBox id="DateTextBox" runat="Server" Text="<%#
((IPort)Container.DataItem).ArrivalDate %>">
</asp:TextBox>
I don't want it to display the MinValue, I want it to display an empty
string.
Thanks,
Peter
I have a textbox generated in a "repeater". The repeater is looping over an
array of Port objects, and displaying various of its attributes. One
attribute is a DateTime object which I want displayed in the textbox. But
how do I present an empty string in the textbox if the DateTime is MinValue?
How do I check the value while the repeater is iterating?
<asp:TextBox id="DateTextBox" runat="Server" Text="<%#
((IPort)Container.DataItem).ArrivalDate %>">
</asp:TextBox>
I don't want it to display the MinValue, I want it to display an empty
string.
Thanks,
Peter