Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
How to validate empty from WebHtmlEditor
posted

Hello.. I want to ask about how to validate the WebHtmlEditor? I want the editor must be filled with any character.. Just don't want the editor to be empty (enter and space is not allowed too because it doesn't show up anything).. For the moment, I validate it with the C# with if (editor == "" || editor == <br> etc) but it dont seems to be effective because I've tried it and the combination of <br> and &nbsp; is too many and the "empty data" just being inserted to my database.. Is there any effective way to validate it so the editor must be inserted with at least one of any character except enter (<br>) and space (&nbsp;) only? I've using Visual Studio 2008 and I've tried the required field validator in Visual 2008, but It doesn't work too.. I just worked for the plain text box.. please help