B
Beffmans
Hi
I have defined an customvalidator on my TextBox:
function clientvalidate(source, arguments){
{
// even number?
if (arguments.Value%2 == 0)
arguments.IsValid = true;
else
arguments.IsValid = false;
}
<asp:TextBox id="txtNumber" Runat="server" width="62px"></asp:TextBox>
<asp:CustomValidator id="custvalNumber" runat="server"
ErrorMessage="Number is not even" ControlToValidate="txtNumber"
ClientValidationFunction="clientvalidate">*</asp:CustomValidator>
what could I be doing wrong?
ch B.
I have defined an customvalidator on my TextBox:
function clientvalidate(source, arguments){
{
// even number?
if (arguments.Value%2 == 0)
arguments.IsValid = true;
else
arguments.IsValid = false;
}
<asp:TextBox id="txtNumber" Runat="server" width="62px"></asp:TextBox>
<asp:CustomValidator id="custvalNumber" runat="server"
ErrorMessage="Number is not even" ControlToValidate="txtNumber"
ClientValidationFunction="clientvalidate">*</asp:CustomValidator>
what could I be doing wrong?
ch B.