Click here to Skip to main content
12,348,946 members (72,657 online)
Rate this:
 
Please Sign up or sign in to vote.
Hi ,

when i try to add htmleditor extender to my page i get following error :

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

although other ajax controls works fine

how i can solve this

actually im not using any server code in html extender.

Following is my markup for this :
<asp:TextBox ID="txtdescription" runat="server" Height="200px" MaxLength="500"
   TextMode="MultiLine" Width="450px"></asp:TextBox>
   <asp:HtmlEditorExtender runat="server" ID="txtdescription_extender" TargetControlID ="txtdescription" />


thanks
Posted 30-Mar-12 8:54am
Edited 30-Mar-12 10:15am
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160621.1 | Last Updated 13 Apr 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100