我想让我的第一个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