从Ajax控件Toolkit中丢失文件显示错误?`

时间:2012-12-01 01:16:50

标签: c# asp.net ajax calendar compiler-errors

您好,这是我第一次使用Ajax。我在我的visual studio 2010工具箱中添加了ajax,并在我的文本框上面添加了一个日历。当我运行我的网站时,我收到此错误。

MissingManisfestResourceException

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.NET4.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.

现在它说我失踪了ExtenderControlBase,我在哪里可以得到它?

我的日历代码:

 <asp:TextBox ID="txtBday" runat="server" 
            style="z-index: 1; left: 327px; top: 436px" Height="22px"></asp:TextBox><asp:CalendarExtender
                ID="Birthday" runat="server"
            onclientdateselectionchanged="CheckDateEalier" TargetControlID="txtBday" 
            PopupButtonID="btnBirth" PopupPosition="TopRight" >
            </asp:CalendarExtender>
        <asp:ImageButton ID="btnBirth" runat="server" 
            ImageUrl="~/images/calendaricon.jpg" />

1 个答案:

答案 0 :(得分:0)

看来你忘记引用内容文件顶部的程序集了,这里需要一个脚本管理器是一个工作示例,希望它有所帮助。

 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>   
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
 <body>
<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <asp:TextBox ID="TB" runat="server" />
<asp:CalendarExtender ID="C" runat="server" TargetControlID="TB">
</asp:CalendarExtender>


</form>
</body>
</html>