locked
Unknown server tag cc1: ToolkitScriptManager RRS feed

  • Question

  • User2019224730 posted

    I am using ajaxcontrols and in that all controls are working well But I had not found any of the control named as `ToolkitScriptManager` so I had just copied this tag in .html page.

    What shall I do?
    The version of framework in hosting server is 2.

    My Web.config file is:

    <pages>
    <controls>
    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/>
    </controls>
    </pages>
      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" TagPrefix="cc1"/>
            <bindingRedirect oldVersion="3.5.0.0" newVersion="1.0.61025.0"/>
          </dependentAssembly>
        </assemblyBinding>
      </runtime>

    Aspx page:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="CS.aspx.cs" Inherits="CS" %>
    
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
    <!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></title>
    <style type="text/css">
    .Star
    {
    background-image: url(images/Star.gif);
    height: 17px;
    width: 17px;
    }
    .WaitingStar
    {
    background-image: url(images/WaitingStar.gif);
    height: 17px;
    width: 17px;
    }
    .FilledStar
    {
    background-image: url(images/FilledStar.gif);
    height: 17px;
    width: 17px;
    }
    </style>
    </head>
    <body>
    <form id="form1" runat="server">
    <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </cc1:ToolkitScriptManager>
    <cc1:Rating ID="Rating1" AutoPostBack="true" OnChanged="OnRatingChanged" runat="server"
    StarCssClass="Star" WaitingStarCssClass="WaitingStar" EmptyStarCssClass="Star"
    FilledStarCssClass="FilledStar">
    </cc1:Rating>
    <br />
    <asp:Label ID="lblRatingStatus" runat="server" Text=""></asp:Label>
    </form>
    </body>
    </html>


    Saturday, April 5, 2014 5:02 PM

Answers

  • User-1360095595 posted

    Your tagprefix is ajaxToolkit. The error is reporting cc1. You need to replace cc1 with ajaxToolkit.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, April 6, 2014 12:13 AM