Last post Sep 02, 2009 11:43 PM by nhaas
Sep 01, 2009 05:48 PM|nhaas|LINK
How do I create a drop down in VB.Net I want to have one drop down for Current Month with 11 months drop down and then another drop down with current year through minus 7 years.
Someting like the date picker.
Sep 01, 2009 08:36 PM|vik20000in|LINK
For ading years
declare an enum
foreach (string item in Enum.GetNames(typeof(Months)))
int value = (int)Enum.Parse(typeof(Months), item);
ListItem listItem = new ListItem(item, value.ToString());
DropDownList1.Items.FindByText((DateTime.Today.Month("MMM")).Selected = true
Sep 02, 2009 11:43 PM|nhaas|LINK
OK, I will try to convert it to VB and try it when I get it back to the office.,