Calendar & DropDown boxes for changing Calendar Month, Day, Year
-
I have a calendar in web application vb.net. I have a month dropdown box, a day dropdownbox and a year dropdown box. When I select the Month, I can get my calendar to change to month but right now have hard code at end for /1/2003. How do I get it to change for month and stay on whatever day and year. And then select the day I want in the dropdown box and change the day in calendar but keep the month i just selected and year shown. And then select the Year I want in the dropdown box and change the year in calendar but keep month and day I just selected in other dropdown boxes? Can't figure it out. This is my dropdown list so for for the Month which works , but then I need it to stay on the selected month and change for day, year. Can't figure out without hard code at end "/1/2003" which I don't want, because day and year dropdown lists when selected need to change for whatever I select. PLEASE HELP!!!!! Thank you.... Alex Private Sub ddlMonth_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ddlMonth.SelectedIndexChanged 'ddlMonth.DataValueField = Calendar1.SelectedDate.Month Calendar1.SelectedDate = CDate(ddlMonth.SelectedIndex + 1 & "/1/2003") Calendar1.VisibleDate = CDate(ddlMonth.SelectedIndex + 1 & "/1/2003") End Sub