我想讓我的第一個AJAX控件出現錯誤。 我可能錯過了一些步驟,但我無法找到他們,儘管我閱讀了很多教程, 很有可能因爲我是AJAX新手,所以我需要一步步引導。開始使用AJAX ToolKit控件
這是我已經做了步驟:下載Ajax工具包
- 。
- 將這些控件添加到工具箱。
- 創建新的ASP.NET網站(我聽說過啓用AJAX的選項,但我沒有這個選項)
- 添加一個AJAX工具。
而那就是它。
我讀到我需要註冊添加應用程序bin文件夾中的AjaxControlToolkit.dll, 但我不知道如何做到這一點,我沒有在我的網站,只有App_Data文件夾Bin文件夾。
比我更需要把它添加到web配置:
<add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
比我更需要把它添加到我的網站:
<asp:ScriptManager ID="scriptmanager1" EnablePartialRendering="true" runat="Server" />
這是我收到的錯誤:
"Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0012: The type 'System.Web.UI.ExtenderControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'."
源錯誤:
Line 16: <br />
Line 17: <asp:Label ID="Label1" runat="server" Text="Label" Width="229px"></asp:Label><br />
Line 18: <asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText="are you sure"
Line 19: TargetControlID="Button1">
Line 20: </asp:ConfirmButtonExtender>
有誰知道我該如何解決這個錯誤?
我使用Visual Studio 2005