1jaws
asked on
combobox problem
ddDate is a RadCombobox and that line starts with ddDate is giving error saying invalid argument about adding items to combobox..
DateTime dateCounter = System.DateTime.Now;
System.DateTime today = System.DateTime.Now;
while (dateCounter >= today.AddDays(-30))
{
ddDate.Items.Add(new ListItem(dateCounter.ToStr ing("d"), dateCounter.ToString("d")) );
dateCounter = dateCounter.AddDays(-1);
}
DateTime dateCounter = System.DateTime.Now;
System.DateTime today = System.DateTime.Now;
while (dateCounter >= today.AddDays(-30))
{
ddDate.Items.Add(new ListItem(dateCounter.ToStr
dateCounter = dateCounter.AddDays(-1);
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER