Difficulties using custom control - RichTextEditor

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-05-10T03:14:16Z Indexed on 2010/05/10 3:48 UTC
Read the original article Hit count: 406

Filed under:
|
|
|

I am working on a school project that uses ASP.NET. I found this TextEditor control ( http://blogs.msdn.com/kirti/archive/2007/11/10/rich-text-editor-is-here.aspx ) that I am trying to include but it isn't working.

The error I am getting is: Error Rendering Control - TextEditor. An unhandled exception has occurred. Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index.

I see this error when I go Design part of the editor. I just don't understand this error at all. Also I am a lil bit confused as there is no parameter called index. :(

What I have done is reference the binary in my project and then on the page I am trying to use it have registered its namespace and assembly with this line:

<%@ Register Assembly="RichTextEditor" Namespace="AjaxControls" TagPrefix="rtt" %>

I then go ahead and try to add the control to the page with this line of code:

<rtt:richtexteditor ID="TextEditor" Theme="Blue" runat="server" />

Any help would be much appreciated. I haven't done anything like add a custom control before.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#