30 July 2008

I was trying to validate FCK Editor, that user must have to enter some value in Editor using RequiredFieldValidator.

But I found that, Required Field Validator will not work with FCK editor directly until you did not change “EnableClientScript” equal to “false".

But CustomValidator will work with FCK editor.

There are two ways to add FCK Editor in ASPX page.

Add Editor using JavaScript




Or Add Editor using FCK Editor Component form Toolbox.



Now Add Custom Validator control to the page.


OK now we have to create a JavaScript function which one help us to check validation.


Done. Run the page and you can see that you must have some value in FCK Editor else it will not post server side event.

0 comments :

Post a Comment