Calendar Control - Selecting a date in another month

Discussion in 'ASP .Net Web Controls' started by Bob Hansen, Oct 5, 2004.

  1. Bob Hansen

    Bob Hansen Guest

    Howdy all,

    I'm setting the SelectedDate property on a Calendar control through code and
    sometimes that date may be in the next month, however, the calendar control
    still displays the current month and not the month of the date selected. If
    I advance to the month where the date is selected, it shows as selected just
    fine. How can I make it so that the correct month is displayed?

    Thanks,

    Bob Hansen
     
    Bob Hansen, Oct 5, 2004
    #1
    1. Advertising

  2. SelectedDate and VisibleDate property usage. One for selecting, other for
    displaying. the best way to do is when you select a day, you set:
    VisibleDate = SelectedDate;

    --
    RobertK
    { Clever? No just smart. }

    "Bob Hansen" <> wrote in message
    news:...
    > Howdy all,
    >
    > I'm setting the SelectedDate property on a Calendar control through code

    and
    > sometimes that date may be in the next month, however, the calendar

    control
    > still displays the current month and not the month of the date selected.

    If
    > I advance to the month where the date is selected, it shows as selected

    just
    > fine. How can I make it so that the correct month is displayed?
    >
    > Thanks,
    >
    > Bob Hansen
    >
    >
     
    Robert Koritnik, Oct 5, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nathan Sokalski
    Replies:
    1
    Views:
    770
    Mark Rae
    Jan 11, 2007
  2. Replies:
    1
    Views:
    466
    Steve W. Jackson
    Dec 22, 2006
  3. Mufasa
    Replies:
    0
    Views:
    407
    Mufasa
    Sep 5, 2008
  4. Parthiv Joshi
    Replies:
    1
    Views:
    753
    Samuel L Matzen
    Jul 6, 2004
  5. Nathan Sokalski
    Replies:
    0
    Views:
    269
    Nathan Sokalski
    Jan 11, 2007
Loading...

Share This Page