2012-12-01 22 views
0

您好,這是我第一次使用Ajax。我在我的visual studio 2010工具箱中添加了ajax,並在我的文本框中添加了一個日曆。當我運行我的網站時,出現此錯誤。來自Ajax控件Toolkit的錯誤文件出現錯誤?'

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" /> 

回答

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> 
+1

是的你是正確的,我錯過了'ScriptManager' – GivenPie