Why custom validation can not fire client event?

Discussion in 'ASP .Net Building Controls' started by amanda.shen, Jan 9, 2006.

  1. amanda.shen

    amanda.shen Guest


    My custom validator-- DateDifferentValidator-- works smoothly on 2003.
    But when vs.net 2005, the client event can not fire.

    I find that there are some codes not generated by myself.

    <script type="text/javascript">
    var DateDifferenceValidator1 = document.all ?
    document.all["DateDifferenceValidator1"] :
    DateDifferenceValidator1.controltovalidate = "Date1";
    DateDifferenceValidator1.errormessage = "DateDifferenceValidator";
    DateDifferenceValidator1.evaluationfunction =
    // -->

    so my client event is changed to
    DateDifferenceValidator1.evaluationfunction =
    "CompareValidatorEvaluateIsValid", not
    "DateDifferenceValidator1_EvaluateIsValid" which is expected.

    how to solve this problem.
    amanda.shen, Jan 9, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.