Unknown server tag "ajaxToolkit: CalendarExtender".

I get this error when trying to use the latest version of ajaxToolKit NET4.

I downloaded it, extracted it as described in the instructions, and selected the dll in the toolbox and downloaded it ok.

The code I added is a simple calendar with a text box using an extension calender

<asp:TextBox ID="txtDateFrom" runat="server" CausesValidation="true" > </asp:TextBox> <ajax:calendarextender ID="ce1" runat="server" Format="dd-MM-yyyy" TargetControlID="txtStartDate" PopupPosition="Right" > </ajax:calendarextender> 

Am I missing something obvious?

+6
source share
1 answer

Have you included the library as a directive of the page on this page?

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

Also don't forget to add a script dispatcher, although I don't think this would allow for an error

+8
source

Source: https://habr.com/ru/post/906329/


All Articles