Without clicking on Previous or Next Month over and over, at first, with the ASP.Net Calendar Control, it seems pretty cumbersome, to change the year of the calendar. This sample shows a simple way of setting up a DropDownlist to work in conjunction with the Calendar Control to quickly Change the year of the Calendar Control.
<script language="VB" Runat="server"> Dim myDate as DateTime Dim myYear as Long dim x as Integer Dim iDiff as Integer Sub Page_Load(Source as Object, E as EventArgs) myDate=DateTime.Now myYear=MyDate.Year if not Page.IsPostBack then ddlYear.Items.Add(myYear) For x=1 to 5 ddlYear.Items.add(new ListItem(myYear-x)) next end if End Sub Sub ChangeYear(Source as Object, E as EventArgs) iDiff=MyYear-cInt(ddlYear.SelectedItem.text) cal1.TodaysDate=myDate.addYears(-iDiff) End Sub </script> <html> <head> <meta name="GENERATOR" Content="ASP Express 3.1"> <title>Easy Calendar Year Change</title> </head> <body> <form id="form1" Runat="server"> <asp:DropDownList id="ddlYear" Runat="server"> </asp:DropDownList><br> <asp:Calendar id="cal1" Runat="server" Backcolor="White" Forecolor="Black" Borderwidth="2" ShowGridLines="true" /> <asp:Button id="btn" Text="Change Year" onclick="changeYear" Runat="server" /> </form> </body> </html>