Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calendar Server Control
Message
From
04/09/2002 13:26:47
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Calendar Server Control
Miscellaneous
Thread ID:
00696706
Message ID:
00696706
Views:
54
Hello,

I have created a ASPX page with a calendar control on it. I added to the page two combo boxes, one for the year and one for the month. I did this because I didn't find a way to have the user select the year or month without clicking a bunch of times. Anyway, I am having trouble finding a way to change the year of the calendar. The code from the year combo box is below. The selected value is 2002 all the time for some reason.

What's wrong with the code below? Is there a better way accomplish this?

MyCalendar.SelectedDate = Convert.ToDateTime(MyCalendar.VisibleDate.Month.ToString() + "/" + MyCalendar.VisibleDate.Day.ToString() + "/" + cboYear.Items(cboMonth.SelectedIndex).ToString())
Thanks

Jim
Next
Reply
Map
View

Click here to load this message in the networking platform