I am doing a report to display the records in Grid view based on some search parameters. In that one search filter is Drop down with Year values. The drop down should contain the years starting from 2000 to current year. If the year changes it should automatically bind the next year.
How can I achieve this?
I am doing a report to display the records in Grid view based on
Share
May I’m not understanding your question right, but it looks like you’re just ‘binding’ a simple drop down to some year values. If that’s the case, i would put the following into your Page_Load
At that point you need to use MyDropDownList.SelectedValue when retrieving your data to be displayed.
EDIT:
Added default selection of current year.