简体   繁体   中英

Calendar extender not working in ASP.NET

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

确保您的ToolkitScriptManager在您之后

<form id="form1" runat="server">

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM