元素'CalendarExtender'不是已知元素

时间:2015-11-19 12:19:40

标签: asp.net

我收到了上述错误,尽管在我的项目中包含了AjaxControlToolkit.dll并在.aspx中添加了以下内容:

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

我可以在这里找到什么?

我的页面:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test2.aspx.cs" Inherits="test2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <ajaxToolkit:ToolkitScriptManager id="ToolkitScriptManager1" runat="server"></ajaxToolkit:ToolkitScriptManager>
    <div>
        <asp:TextBox runat="server" ID="txtDateFerie" autopostback="True"/>
        <asp:Button runat="Server" ID="ibtnDateFerie" 
        CausesValidation="False" />
        <ajaxToolkit:CalendarExtender Format="dd/MM/yyyy" ID="cbeDateFerie" runat="server" Enabled="True"
        TargetControlID="txtDateFerie" PopupButtonID="ibtnDateFerie" />
    </div>
    </form>
</body>
</html>

0 个答案:

没有答案