Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calendar Server Control
Message
De
04/09/2002 13:26:47
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Calendar Server Control
Divers
Thread ID:
00696706
Message ID:
00696706
Vues:
53
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform