The forum operates in read-only mode. Please head to StackOverflow for support.
<script type="text/javascript" src="ckeditor1/ckeditor.js"></script> <script type="text/javascript" src="ckeditor1/adapters/jquery.js"></script> <asp:TextBox ID="txtAbout" TextMode="MultiLine" runat="server"></asp:TextBox> <asp:CustomValidator ID="CustomValidator4" runat="server" ControlToValidate="txtAbout" ErrorMessage="Empty is not allowed." CssClass="errorlabel" ClientValidationFunction="GetCKEditorData" ValidateEmptyText="true" EnableClientScript="true"> *</asp:CustomValidator> <script type="text/javascript"> $(document).ready(function () { $('#<%= txtAbout.ClientID %>').ckeditor(); }); function GetCKEditorData(oSrc, args) { var data = $('#<%= txtAbout.ClientID %>').val(); if (data != "") { args.IsValid = true; } else { args.IsValid = false; } } </script>
Re: Problem in using RequiredfieldValidator in CKEDITOR
the code is bellow