Not able to use cutomized Ajax HTML editor from code behind

Posted by KhanS on Stack Overflow See other posts from Stack Overflow or by KhanS
Published on 2010-04-16T05:58:43Z Indexed on 2010/04/16 6:03 UTC
Read the original article Hit count: 440

Filed under:
|
|

I am customizing the ajax html editor. I am creating a class which derives from ajax html editor, and overriding FillTopToolbar() method to have limited toolbar buttons. I am trying to use this in my aspx page.

<%@ Register namespace="Content" tagprefix="edit" %>
<edit:MyEditor runat="server" Width="100%" Height="250px"/>

I am able to see the editor in my aspx page. The problem comes when I give an ID to the control

<edit:QNAEditor ID="htmlEditor" runat="server" Width="100%" Height="250px"/>

I get an error in the designer file in the below line.

protected global::Content.MYHTMLEditor htmlEditor;

I am not able to use it in code behind. I am using VS 2010. Please help me in this regard.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about ajaxcontroltoolkit