Solved

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

Posted on 2011-02-14
2
445 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

831 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