Solved

ASP.Net Calendar Control - selectedDate doesn't auto focus

Posted on 2011-02-14
2
447 Views
Last Modified: 2012-05-11
Hi

I have 2 calendar controls, and have this code in Page_Load

                calFrom.SelectedDate = DateTime.Today.AddDays(-30);
               
                calTo.SelectedDate = DateTime.Today;

The problem I have now, is that the From calendar control doens't auto focus on the month that I want. So the selected date of today - 30 (15th January), yet the page displays February without any date selected (unless I click previous month)

What code is needed to set the auto month focus to be that of the selected date ?

Thanks
0
Comment
Question by:seancurt
  • 2
2 Comments
 
LVL 19

Expert Comment

by:Manoj Patil
ID: 34893723
0
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 500 total points
ID: 34893728
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question