FCK Editor Validation

Here is a good example for FCK editor validation.

Declare a Custom Validator;

<asp:CustomValidator runat="server" ID="cvBody" SetFocusOnError="true" Display="dynamic" Text="The Body is required" ClientValidationFunction="ValidateContentText"></asp:CustomValidator>

Add this Javascript function to your page

function ValidateContentText(source,args)
{
var fckBody= FCKeditorAPI.GetInstance('<%=FCKeditor1.ClientID %>');
args.IsValid = fckBody.GetXHTML(true) != "";
}

Ref: “fck validation

Advertisements

Dynamic Data-Driven User Interface

In the below link, you can see how we can implement a dynamic data-driven user interface.

That means, the administrator of a web application can determine, what all controls are to be displayed in the user-side. Very useful article to begin with.

Creating a Dynamic Data-Driven User Interface