Error when using renderControl to access editor

Last post 05-04-2005, 4:00 AM by tfc. 2 replies.
Sort Posts: Previous Next
  •  05-03-2005, 2:55 AM 6363

    Error when using renderControl to access editor

    Im trying to create a class with all my code to create a CuteEditor
    But im getting an error.

    ERROR : System.NullReferenceException: Object reference not set to an instance of an object. at CuteEditor.a.d(HtmlTextWriter A_0) at CuteEditor.a.h(HtmlTextWriter A_0) at CuteEditor.a.g(HtmlTextWriter A_0) at CuteEditor.a.i(HtmlTextWriter A_0) at CuteEditor.Editor.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at Web.CuteEditorv2.EditorCore(String& strName, Int32& intWidth, Int32& intHeight, String& strText, String& AutoStart, String[]& DWEditorTagsArray, String& CSS) in C:\Projects\Web.net\Application\Web\cl\CuteEditor.vb:line 23
     
    I would like NOT to use this
    <CE:Editor id="Editor1" EditorWysiwygModeCss="../example.css" runat="server" ></CE:Editor>

    How do i do this ?
  •  05-03-2005, 8:56 AM 6364 in reply to 6363

    Re: Error when using renderControl to access editor

    Hello:
     
    At least you should add the editor into a parent control .
     
    For example :
     
    Me.Controls.Add( Editor1 )
     
     
    Regards , Terry .
  •  05-04-2005, 4:00 AM 6382 in reply to 6364

    Re: Error when using renderControl to access editor

    Hi Terry,
     
    Thanks for your reply.

    I tried your suggestion, but no luck.
     
    Can you send me an example ?
     
    Regards, Thomas
View as RSS news feed in XML