Click here to Skip to main content
Rate this: bad
good
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
0 Sergey Alexandrovich Kryukov 667
1 ashok rathod 174
2 CPallini 140
3 ChauhanAjay 135
4 CHill60 130
0 Sergey Alexandrovich Kryukov 9,735
1 OriginalGriff 6,989
2 CPallini 5,825
3 George Jonsson 4,017
4 Gihan Liyanage 3,266


Advertise | Privacy | Mobile
Web04 | 2.8.140926.1 | Last Updated 13 Apr 2012
Copyright © CodeProject, 1999-2014
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