title: AjaxToolKit CalendarExtender Problems
body: <p>In my Summary page, I have two CalendarExtender controls to enable someone to select Start Date and End Date for database queries.</p>
  
  <p>In the head of my Summary.aspx page, I have the following declarations:</p>
  
  <pre><code>&lt;%@ MasterType VirtualPath="~/Site.Master" %&gt;
  &lt;%@ Page Title="ACP Sheet Metal - Summary" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Summary.aspx.cs" Inherits="AcpSheetMetal.Summary" UICulture="es" Culture="es-MX" %&gt;
  &lt;% @Import Namespace="System.Globalization" %&gt;
  &lt;%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%&gt;
  </code></pre>
  
  <p>For the page itself, I have a <code>ToolkitScriptManager</code>, two (2) <code>TextBox</code> controls, two <code>CalendarExtender</code> controls, and a <code>GridView</code> control:</p>
  
  <pre><code>&lt;ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" EnableScriptGlobalization="true" EnableScriptLocalization="true" /&gt;
  &lt;asp:TextBox ID="txtStartDate" runat="server" /&gt;
  &lt;asp:CalendarExtender ID="calExStartDate" runat="server" TargetControlID="txtStartDate" OnClientShown="ChangeCalendarView" OnClientDateSelectionChanged="checkDate" /&gt;
  &lt;asp:TextBox ID="txtEndDate" runat="server" /&gt;
  &lt;asp:CalendarExtender ID="calExEndDate" runat="server" TargetControlID="txtEndDate" OnClientShown="ChangeCalendarView" OnClientDateSelectionChanged="checkDate" DaysModeTitleFormat="MM/dd/yyyy" DefaultView="Months" Enabled="True" TodaysDateFormat="MMMM dd, yyyy" /&gt;
  &lt;asp:GridView ID="summaryGridView" runat="server" /&gt;
  </code></pre>
  
  <p>In the <code>Page_Load</code> event in the C# code, I have placed the following:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e) {
    MasterPage = (SiteMaster)Page.Master;
    if (!Page.IsPostBack) {
      calExEndDate.TodaysDateFormat = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern;
      calExStartDate.TodaysDateFormat = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern;
    }
  }
  </code></pre>
  
  <p>So, why are my Calendar controls not working? There are no values in the calendars and the language appears to be Spanish.</p>
  
  <p><img src="https://i.stack.imgur.com/u5idd.png" alt="enter image description here"></p>