Search code examples
c#asp.netckeditorcustom-server-controls

I receive error 'Unknown Server Tag' with Page.ParseControl on a custom server control, not asp control?


I'm building a dynamic form using XML and XSLT. Anyway I'm using a custom asp.net control for CKEditor, it's an HTML editor.

When I try to add the controls from the XSLT using Page.ParseControl(<the-string-from-the-xslt-here>), I get a warning saying:

Unknown server tag 'FCKeditor.CKEditor'

And of course, if I remove the control from the XSLT everything is working fine and all the regular asp.net controls like TextBox etc get rendered to the string just fine.

Does anyone know what I can do about it?


Solution

  • I found a thread with a very similar question and the answer is:

    To pass the register directive with the string to the ParseControl function.

    You can read all about it here or here.