Posted on: 1/2/2015 8:01:54 PM | Views : 637

DynamicControl renders DynamicValidator for custom dataanotations validation at server side (ModelBinding). Back on client side after UpdatePanel postback, Page_ClientValidate function is triggered and it iterates all Page_Validators through ValidatorValidate function. This function starts setting 'val.isvalid = true' and later it relies on 'typeof(val.evaluationfunction) == "function"' to apply it over 'val.isvalid'. The thing is that DynamicValidator does not have 'val.evaluationfunction' so, evaluationfunction is never applied and 'val.isvalid' remains true even if it is correctly false before entering the function. After loop is finished in Page_ClientValidate function, ValidatorUpdateIsValid is called, Page_IsValid variable is set to true and ValidationSummary is not properly shown.
Am I right on this?
Happy new year!!!

Go to the complete details ...