Hi,
I have a few web apps in production, built & maintained w/ VS 2010 and using the AjaxControlToolkit v. 3.0.30512 from 5/13/2009. Recently, I noticed that the behavior of the CalendarExtender in one app is different than the others, and incorrect. I can see no difference in either the dll or any of the code.
Also, I need to add some functionality to the calendar which seems should be handled perfectly by the (relatively) new StartDate property.
Rather than spend too much time trying to debug the problem and the new functionality needed, I decided to just upgrade to the latest version of the AjaxControlToolkit, 4.1.7.0123 from 1/24/2013 (according to the website).
Following the instructions on the site, I first downloaded and installed NuGet, then installed the AjaxControlToolkit. It installed 3 dll's in the Bin folder: AjaxControlToolkit, HtmlAgilityPack & SanitizerProviders, as well as a bunch of localized resource folders. (There are no .js files installed that I can see.) It also put all the AjaxControlToolkit controls in the ToolBox in VS2010. Looks good, so far.
But things do not work properly!
First of all, I am unable to drag any of the Ajax Control Toolkit or AJAX Extensions from the Toolbox onto the page. (I can drag Standard or other controls onto the page.)
I then hand-coded the following into the .aspx:
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%><asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"><ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"/><asp:TextBox ID="txtDate" runat="server"
CssClass="TxtFld"
Width="70"
AutoPostBack="false"/><asp:ImageButton ID="ibDate" runat="server"
Height="18" Width="18"
ImageUrl="~/Images/Calendar18x18.gif" ImageAlign="AbsBottom" /><asp:CalendarExtender ID="ceDate" runat="server"
CssClass="cal_Theme1"
StartDate="6/1/2013"
TargetControlID="txtDate"
FirstDayOfWeek="Monday"
PopupPosition="TopRight"
PopupButtonID="ibDate" /></asp:Content>The calendar extender mostly works, except that now the PopupPosition property has no effect. This is very important because the default position is BottomLeft, and since the control is near the bottom of the page, the calendar is mostly out of view.
Also, the StartDate does not do what I needed. I need to be able specify the initial month shown without actually selecting a date. For example, even though today is in March, I want the initial month shown to be June. With the StartDate set for 6/1/2013, the initial month shown is still March, but now the Next/Previous buttons do not work until I click on the header and go to June, at which point it works more or less correctly.
So to summarize:
1. How can I drag & drop the Ajax controls from the Toolbox?
2. How can I display a specified month as the starting month?
Thanks.
--Dan