I am attempting to populate a dropdown for hours and minutes. I use the following and it returns Object reference not set to an instance of an object. It definately returns a value to vMinutes. Can anyone be of help?
string vMinutes = vStartDate.TimeOfDay.Minutes.ToString();
ListStartHour.Items.FindByText(vMinutes.Trim()).Selected = true;
string vMinutes = vStartDate.TimeOfDay.Minutes.ToString();
ListStartHour.Items.FindByText(vMinutes.Trim()).Selected = true;