Reputation: 619
I am trying to add Calendar Extender using AJAX on my web application. I am trying to popup calendar on click of textbox. I have tried all steps as mentioned here in this example
I have redownloaded AJAX TOOLKIT 4.5 and pasted it in bin folder.
But nothing happens.
My codes are:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:TextBox ID="txtfrom" runat="server"></asp:TextBox>
<ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></ajax:ToolkitScriptManager>
<ajax:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtfrom" PopupButtonID="txtfrom"></ajax:CalendarExtender>
So let me know what I a missing here.
Thanks
Upvotes: 1
Views: 2059
Reputation: 345
Make sure you're using the appropriate .NET framework that corresponds with your AJAXControlToolkit.dll and that it is correctly added as a Reference in your project.
If you go to your browser's developer tools (F12 in firefox and IE) and check out the console output, it should give you some errors regarding the AjaxControlToolkit.
Upvotes: 0
Reputation: 556
Make sure your ToolkitScriptManager is right after your
<form id="form1" runat="server">
Upvotes: 0