How to connect a requiredFieldValidator to a wrapped editor?

Jul 20, 2010 at 9:59 AM


I was looking for a solution and surprised not to find in documentation the correct the do do something like below:

<font size="2">


 </font><syx:CkEditor runat="server" id="ckeditor3" CanCollapseToolbar="false" Resizable="false"></syx:CkEditor>

<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 

This code results in the error:

ControlToValidate="ckeditor3" ErrorMessage="No content in CKEditor!"></asp:RequiredFieldValidator>

Control 'ckeditor3' referenced by the ControlToValidate property of 'RequiredFieldValidator2' cannot be validated.