Click here to Skip to main content
14,690,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CalendarExtender Does not shown when focus

Full code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PruebaCal.aspx.cs" Inherits="TRBAPPTO.PruebaCal" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
  <form id="form1" runat="server">
      <asp:ScriptManager runat="server"></asp:ScriptManager>
      <div>
          <asp:TextBox ID="txtExpDate" runat="server" CssClass="textbox" AutoPostBack="true">
          </asp:TextBox>
          <ajaxToolkit:CalendarExtender ID="TxtDate_CalendarExtender" runat="server" 
              Enabled="True" PopupButtonID="txtExpDate" 
              TargetControlID="txtExpDate" Format="dd-MM-yyyy">
          </ajaxToolkit:CalendarExtender>
      </div>
  </form>
</body>
</html>


What am i doing wrong?

I installed AjaxToolKit version 20.1, unintall and reinstall after upgrading VS2019 version 16.8.2

I followed all sugestions acroos the web but nothing helps during last 3 days

Any help will be appreciated

What I have tried:

Everything under google search "ajaxToolkit:CalendarExtender not working"
Posted
Updated 3 days ago

1 solution

I think you need to register ajaxtoolkit in web.config instead of the page.

Looking at the sample website here: AjaxControlToolkit/Web.config at master · DevExpress/AjaxControlToolkit · GitHub[^]

Remove from your page and add to web.config and try out. Sample provided in Github is the hosted example that works, so it should be easy to get it working looking at the differences.
   
Comments
Member 12357524 2 days ago
   
I applied this again but nothing changes.
I have already tried this but got same result, not working.
Does anybody know if there is an issue regarding Visual studio 2019 vs Ajax?
Member 12357524 2 days ago
   
Here is my web config



<configuration>
<configsections>



<appsettings>

<add key="dbGrl" value="Data Source=198.71.225.145; User Id=BDDBsql; Password=Changoleon##1bd;">

<add key="TiposUnidad" value="Longitud,Área,Volumen,Masa,Tiempo,Temperatura,Eléctrica,Luminosa,Agrupación,Tareas">

<add key="NivelesPartidas" value="12">
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None">


<system.web>
<compilation debug="true" targetframework="4.7.2">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">


<httpruntime targetframework="4.7.2">
<pages>
<namespaces>
<add namespace="System.Web.Optimization">

<controls>
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagprefix="webopt">
<add tagprefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit">




<runtime>
<assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentassembly>
<assemblyidentity name="Antlr3.Runtime" publickeytoken="eb42632606e9261f">
<bindingredirect oldversion="0.0.0.0-3.5.0.2" newversion="3.5.0.2">

<dependentassembly>
<assemblyidentity name="Newtonsoft.Json" publickeytoken="30ad4fe6b2a6aeed">
<bindingredirect oldversion="0.0.0.0-12.0.0.0" newversion="12.0.0.0">

<dependentassembly>
<assemblyidentity name="WebGrease" publickeytoken="31bf3856ad364e35">
<bindingredirect oldversion="0.0.0.0-1.6.5135.21930" newversion="1.6.5135.21930">




<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warninglevel="4" compileroptions="/langversion:default /nowarn:1659;1699;1701">
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warninglevel="4" compileroptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+">



<system.webserver>
<handlers>
<add name="AjaxFileUploadHandler" verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit">



<ajaxcontroltoolkit
usestaticresources="true"
="" renderstylelinks="false" htmlsanitizer="AjaxControlToolkit.HtmlEditor.Sanitizer.DefaultHtmlSanitizer, AjaxControlToolkit.HtmlEditor.Sanitizer" tempfolder="~/Temp">

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900