Hi
How to retreive TimeSpan value in dropdown. Below is the value in table.
09:00:00.0000000
I am trying like below but it is giving error - Cannot convert from system.timespan to string.
ddlTimeFrom.SelectedValue = TimeSpan.Parse(Result.FromTime).ToString();
Thanks

Uday DodiyaRank #239 · 10.3K reputationPosted Aug 29, 2022, 4:56 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Aug 29, 2022, 4:46 AM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Aug 29, 2022, 4:53 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Aug 29, 2022, 5:12 AM EDT