ValidatorCalloutExtender does not work with MaskedEditExtender1 RRS feed

  • Question

  • User-1925511585 posted


     my problem is when i used ValidatorCalloutExtender with MaskedEditExtender, it does not display error message correctly. It display message "This Control is invalid" instead of the error message specify in MaskedEditExtender as EmptyValueMessage.

     i think this is problem occured due to MaskedEditExtender does not have ErrorMessage property.

     I need solution immediately. send me ur suggetion or solution as soon as possible.

     thanx in advance.


    Thursday, April 5, 2007 2:37 AM

All replies

  • User1942332929 posted


    The ValidatorCallout get errormessage  at initialize and the MaskEditValidator modifies errormessage during the execution.  For correct behavior for work  together  the MaskEditValidator  is necessary a small adjustment  in ValidatorCallout  to get errormessage at runtime. 

    I made a test with the code below and functioned OK:

    FILE : ValidatorCalloutBehavior.js

    At line ~167 insert ID of cell :

    errorMessageCell.id = "vldcalloutErrMsg" + this.get_element().id;

    At line ~275 Show Popup  function changed  to

    show : function(force) {
    if (force || !this._isOpen) {
       this._isOpen = true;
       if(force && AjaxControlToolkit.ValidatorCalloutBehavior._currentCallout) {
       if(AjaxControlToolkit.ValidatorCalloutBehavior._currentCallout != null) {

       // get erro message aty runtime here
       // *****************************************
       var errorMessageCell = $get("vldcalloutErrMsg" + this.get_element().id);
       errorMessageCell.innerHTML = this._getErrorMessage();
       // *****************************************

       AjaxControlToolkit.ValidatorCalloutBehavior._currentCallout =


    Thursday, April 5, 2007 9:26 AM
  • User-709061315 posted


    Am not able to under stand your code. Can you explain briefly.


    Warm Regards,


    Thursday, December 13, 2007 4:50 AM
  • User1701475643 posted

    I think u have to use MaskedEditExtenderValidator to solve your problem


    I hope it can solve your problem.

    Thursday, December 13, 2007 10:53 PM
  • User-709061315 posted
    I used same MaskedEditExtenderValidator, but am not able to use Validatorcallout for this MaskedEditExtenderValidator control. Do u have any idea in this?
    Tuesday, December 18, 2007 6:33 AM