Solved

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

Posted on 2011-02-14
2
441 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
Comment Utility
0
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 500 total points
Comment Utility
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now