在visual studio中使用ajax的问题

时间:2011-06-28 10:35:23

标签: asp.net ajax visual-studio-2010

<cc1:Rating ID="Rating1" runat="server"
    MaxRating="5"
        CurrentRating="2"
        CssClass="ratingStar"
        StarCssClass="ratingItem"
        WaitingStarCssClass="Saved"
        FilledStarCssClass="Filled"
        EmptyStarCssClass="Empty"
>
            </cc1:Rating>
    </asp:Content>

该评级控件未出现在页面上!!

    <%@ Page Title="" Language="C#" MasterPageFile="~/YourGuruMaster.master" AutoEventWireup="true" CodeFile="PickTheBestAnswer.aspx.cs" Inherits="PickTheBestAnswer" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

   <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>

<cc1:Rating ID="Rating1" runat="server"
    MaxRating="5"
        CurrentRating="2"
        CssClass="ratingStar"
        StarCssClass="ratingItem"
        WaitingStarCssClass="Saved"
        FilledStarCssClass="Filled"
        EmptyStarCssClass="Empty"
>
            </cc1:Rating>



    <asp:TextBox ID="TextBox1" runat="server" Height="71px" Width="231px"></asp:TextBox>



</asp:Content>

2 个答案:

答案 0 :(得分:1)

名称空间应为AjaxControlToolkit而不是AjaxControlToolkit.HTMLEditor

答案 1 :(得分:1)

如果您在Visual Studio 2008中使用Ajax Control Toolkit .NET 3.5,则必须安装Visual Studio Service Pack 1。我认为这是你的问题。按照下面给出的说明,参考&#34;注意&#34;参与其中。

http://ajaxcontroltoolkit.codeplex.com/releases/view/90063