asp:calendar problem

  • Thread starter Thread starter boupierre
  • Start date Start date
B

boupierre

Hello there!

I use an asp:calendar in my page and I have an issue with it...

when my page is loaded, if there is no date in the querystring, I set
the calendar's selected date to Today

and if there is a date in the querystring, I set the calendar to this
date.

The code works fine and all, but when I set the calendar's date to a
date that is out of the current month (march, as for now) when the
calendar shows up in the page, it's still at the March month

and then, if I scroll in the months and years to the date where I set
it, the date is selected correctly

is there something I'm missing there?

Kysonel
 
I think that you also need to set the VisibleDate property. You can set this
to the same value that you set the SelectedDate to, this should solve your
problem. If you have any problems doing this let me know. Good Luck!
 
Back
Top