MaskedEditValidator

Dec 19, 2008 at 1:42 AM
Edited Dec 19, 2008 at 3:28 AM
Is there anybody can help me? Thank you in advance.
I need to use MaskedEditValidator with its ClientValidationFunction. My purpose is to compare two fields' value, but I don't want to use CompareValidator, since I want to use different style when the field is invalid. So I am considering to use the MaskedEditValidator and MaskedEditExtender . My code is at below.
<script type="text/javascript">
    function ValidateCaseNumber()
    {
        return false;
    }
   </script>
<asp:TextBox ID="CaseNum" runat="server"/>
            <ajaxToolkit:MaskedEditExtender ID="CaseNumMask" runat="server" TargetControlID="CaseNum" ClearMaskOnLostFocus="false"  Mask="LL-99-9999999999" ></ajaxToolkit:MaskedEditExtender>
             <ajaxToolkit:MaskedEditValidator ID="CaseNumValidator" runat="server" SetFocusOnError="true" ControlToValidate="CaseNum"
                    ControlExtender="CaseNumMask" Display="dynamic" ClientValidationFunction="ValidateCaseNumber"
EmptyValueMessage="Case Number required" IsValidEmpty="false"
  InvalidValueMessage="Invalid Case Number"></ajaxToolkit:MaskedEditValidator>

My problem is the error message is not shown out even the validationfunction was returning the false value.

I need it very urgently. Please feedback to me ASAP. Thanks.

Another problem I am facing is I found the typemode for textbox is only overwritten, can't be inserted.

Is anybody online? I am waiting at here....



Licy---Poor Girl:(