How do i set the label's text depending on the data field value. e.g. if it's proper datetime value then display it, otherwise display "unknown". Please notice that it's inline C# code
ThanksCode:Text='<%# DateTime.TryParse(Eval("MyDate"), out DateTime.Parse("1/1/1753")) == true ? Eval("MyDate") : "unknown" %>'






Reply With Quote