I have this application page with the following (simplified) markup:
<%@ Page Strict="true" EnableViewState="true" Language="vb" MasterPageFile="~/_layouts/application.master" Inherits="Microsoft.SharePoint.WebControls.LayoutsPageBase" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderMain" runat="server" OnDemand="True" >
<SharePoint:ScriptLink Language="javascript" Name="DatePicker.js" Localizable="False" runat="server"/>
<SharePoint:SPDatePickerControl ID="MyDate" runat="server" LocaleId="1033" TimeZone="0" >
</SharePoint:SPDatePickerControl>
</asp:Content>
Essentially all that is on the page is a single control SPDatePickerControl and a ScriptLink control as the SPDatePickerControl requires DatePicker.js otherwise a JS error occurs.
When I click the left and right buttons to change the month (starting from November 2011), I see this odd behaviour:
- Clicking the left arrow takes me to October 2011.
Clicking left again takes me back to November 2011.
Clicking the Right arrow takes me to December 2011
- Clicking right again takes me to January 2012
- Clicking right again takes me to February 2012
- Clicking right again takes me back to November 2011.
Why? This seems very odd behaviour that I can't work out. Note that I have no code to check for postbacks at this point. Any ideas anyone?