<ItemTemplate>
<telerik:RadTimePicker ClientEvents-OnDateSelected="OnDateSelected" ID="txt_InD1" runat="server" Width="86" SelectedDate='<%# Eval("InDay1") %>' ></telerik:RadTimePicker>
</ItemTemplate>
When I run the project, I get an error on the line above saying "Specific cast is not valid" . Some values coming from the db are empty strings and I am guessing thats causing this issue. How can I fix empty strings and null values. my db field is a char(5) and I am only storing the time values such as 3:31, or 4:30 or 12:58 etc.
<telerik:RadTimePicker ClientEvents-OnDateSelected="OnDateSelected" ID="txt_InD1" runat="server" Width="86" SelectedDate='<%# Eval("InDay1") %>' ></telerik:RadTimePicker>
</ItemTemplate>
When I run the project, I get an error on the line above saying "Specific cast is not valid" . Some values coming from the db are empty strings and I am guessing thats causing this issue. How can I fix empty strings and null values. my db field is a char(5) and I am only storing the time values such as 3:31, or 4:30 or 12:58 etc.