ErrorMessageTop
string ErrorMessage
Set the message that will display when validation is failed.
Show/Hide Code
<?php
$validator = $myform_manager->AddControl(new KoolRequiredFieldValidator("valiadtor"));
$validator->TargetId = "txtName";//Validate the Name text box
$validator->ErrorMessage = "This textbox can not be empty.";
?>
<div>
<input id="txtName" name="txtName" /> <?php echo $validator->Render();?>
</div>
Supported from version: 1.0.0.0
TargetIdTop
string TargetId
Set the id of textbox that you want to validate.
Show/Hide Code
<?php
$validator = $myform_manager->AddControl(new KoolRequiredFieldValidator("valiadtor"));
$validator->TargetId = "txtName";//Validate the Name text box
$validator->ErrorMessage = "This textbox can not be empty.";
?>
<div>
<input id="txtName" name="txtName" /> <?php echo $validator->Render();?>
</div>
Supported from version: 1.0.0.0