0

您好,这是我第一次使用 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" />
4

1 回答 1

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>
于 2012-12-01T03:21:05.427 回答