Calendar Extender in Ajax Toolkit does not work as expected on ASP.NET content page
4 answers
Make sure the TargetControlID of the calendar extender is equal to the TextBoxID and then you've enabled the PopupPosition property .
For example:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1" PopupPosition="Right"></cc1:CalendarExtender>
Hope this helps you.
+1
source to share
The best way to solve this problem is to simply add an ajax assembly to your page at the top:
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>
And don't forget to add the tagprefix in the calendar extender as "ajaxToolkit".
ex:
<ajaxToolkit:CalendarExtender ID="txtPostingDate_CalendarExtender"
runat="server" Enabled="True" TargetControlID="txtPostingDate"
Format="MM/dd/yyyy">
</ajaxToolkit:CalendarExtender>
0
source to share