2 Dropdownlists for a Year Range

testervn

New Member
I am stuck at a problem where i really didn't expect to get held up so many hours and it's driving me nutsAs mentioned in the title i need two DropDownLists where the ToYears List has values starting with the selection of FromYear:FromYear
2000
2001
2002
2003
2004ToYear
2002
2003
2004So i tried to use 2 <asp:dropdownlist> and change the selected ToYear during the SelectedIndexEvent of FromYear but this was triggering the selected FromYear event and somehow it wouldn't fire again.Now i found the CascadingDropDown from the Ajax Control Toolkit and thought this might be a good thing. But i don't want to call a web service, instead i would like to use a Method in the code behind the actual page.Also the selection should be remembered after a postback - and the range of years changes depending on properties in the Code behind. I read somewhere that autopostback does not work with the CascadingDropDown.What would you think would be the most elegant and easy solution?Thank you very much in advance.
 
Back
Top