Link to home
Start Free TrialLog in
Avatar of mmedi005
mmedi005

asked on

I want to convert this server side function to a clientside function in my asp .net web page, how?

I want to convert this server side function to a client side function in my asp .net web page, how?

Its needs to be client side so i can use the ValidatorCalloutExtender control.


protected void CheckPhone(object source, ServerValidateEventArgs args)
    {
        if (uxPhoneAreaCodeTextBox.Text != "" &&
            uxPhoneThreeTextBox.Text != "" &&
            uxPhoneFourTextBox.Text != "")
        {
            if (uxPhoneAreaCodeTextBox.Text.Length == 3 &&
                uxPhoneThreeTextBox.Text.Length == 3 &&
                uxPhoneFourTextBox.Text.Length == 4)
                args.IsValid = true;
            else
                args.IsValid = false;
        }
        else
            args.IsValid = false;
    }

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of third
third
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial