?
Solved

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

Posted on 2011-02-14
2
Medium Priority
?
452 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 19

Accepted Solution

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

764 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