I'm trying to use Ajax Toolkit
in ASP.NET page to display a Calendar Extender with this code, but it's not working for me.
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<br />
<br />
<b>Calendar :</b><br />
<asp:TextBox ID="Date1" runat="server"></asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="Date1">
</asp:CalendarExtender>
</div>
</form>
It's not displaying the calendar.
What's the problem ?
Try:
Update:
Do you have the following in your web.config?
Update II
Put the following at the top of your aspx page.
Also, you're referencing AjaxControlToolkit.dll, right? It should be in your bin directory. Right-click project, Add Reference menu choice to add.
Have you added a
Register
directive to your page for the CalendarExtender?(Or added it in web.config like Steve suggested)
Have you added an assembly reference to the AjaxControlToolkit dll?
Well it is caused by ScriptManager. I have this same issue. The solution is very simple just delete ScriptManager From page or where you placed i.e.
Once you delete scriptmanager then just place ToolkitscriptManager or below code:
You can find this in toolbar -> ajax tab not in Ajax Extensions tab. I hope it will solve your issue