<%@ Page Language="C#" MasterPageFile="~/master/111.master" AutoEventWireup="true" CodeFile="Template.aspx.cs" Inherits="_Template" Title="Untitled Page" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %> <asp:Content ID="Content3" ContentPlaceHolderID="cphhead" Runat="Server"> <script type="text/javascript" src="../css-js/jquery-1.8.3.min.js"></script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="cphcontent" Runat="Server"> <cc1:Editor ID="Editor1" Width="1028px" Height="300px" runat="server" SuppressTabInDesignMode="true" ActiveMode="Design" /> </asp:Content> <asp:Content ID="Content5" ContentPlaceHolderID="cphFooterJS" Runat="Server"> </asp:Content>
I am trying to add the main ajax editor of an html page with a namespace, but I have this err: System.Web.HttpException: the Controls collection cannot be changed because the control contains blocks of code (i.e. <% ...% >).
How to fix it? thank you for your responses.
source share