Author: mrssm | Posted on: 11/11/2008 7:11:18 AM | Views : 341

how do i populate a drop down list with the hour and minute values? hour to be in 24 hour format and minutes from 01-60 in that format?

private void Populate_HourList()
{
//Add the hour values (1 hr +-) to the drop down list of hours
int intHour;
for (intHour = 1; intHour <= 24; intHour++)
{
DDL_TimeFromHH.Items.Add(Convert.ToString(intHour));
DDL_TimeToHH.Items.Add(Convert.ToString(intHour));}
}
private void Go to the complete details ...