It needs to be submitted two times before it can be passed. The workaround is to disable the client-side scripting validation feature of the RequiredFieldValidator control. Validation is only on the server side.
Copy Code code as follows:
<asp:requiredfieldvalidator id= "RequiredFieldValidator16" runat= "controltovalidate=" FCK "display=" Dynamic "enableclientscript=" False "errormessage=" not yet filled in ></asp:RequiredFieldValidator>
Today, when looking for information, there is a chance to see a new solution. The above bug can be resolved by using the method provided by FCK to use the CustomValidator control. In the client use JS to do FCK verification.
Code
Copy Code code as follows:
FCK non-null validation
var oediter;
function fckvalidate (source, arguments)
{
var value = oediter.getxhtml (true);
if ($.trim (value) = "")
{
Arguments. IsValid = false;
}
Else
{
Arguments. IsValid = true;
}
}
function Fckeditor_oncomplete (editorinstance)
{
Oediter = editorinstance;
}
Copy Code code as follows:
<asp:customvalidator id= "CustomValidator1" runat= "Server" display= "Dynamic" errormessage= "not filled out" clientvalidationfunction= "Validtitle" onservervalidate= "VALIDFCK" controltovalidate= "FCK" ></asp: Customvalidator>