0
我使用VS 2010創建一個簡單的動畫,但運行時出現以下錯誤!AJAX - 動畫擴展器
請幫我進一步做!
解析器錯誤消息:基類包含字段'ToolkitScriptManager1',但其類型(AjaxControlToolkit.ToolkitScriptManager)與控件類型(AjaxControlToolkit.ToolkitScriptManager)不兼容。
源錯誤:
<form id="form1" runat="server">
<div>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
源文件:/HomeLoggedin.aspx行:23
的源代碼
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HomeLoggedin.aspx.cs" Inherits="TheEncyclopediaOnlineLibrary.HomeLoggedin" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Animation</title>
<style type="text/css">
#Message {
width: 250px;
padding: 10px;
margin-bottom:10px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:Panel ID="Message" runat="server">
Pay attention to me!
</asp:Panel>
<asp:LinkButton ID="lnkYellowFade" OnClientClick="return false;" runat="server">Play Animation</asp:LinkButton>
<asp:AnimationExtender ID="AnimationExtender1" TargetControlID="lnkYellowFade" runat="server">
<Animations>
<OnClick>
<Sequence>
<Color
AnimationTarget="Message"
Duration="2"
Property="style"
PropertyKey="backgroundColor"
StartValue="#FFFF66"
EndValue="#FFFFFF" />
</Sequence>
</OnClick>
</Animations>
</asp:AnimationExtender>
</div>
</form>
</body>
</html>