Exemplo n.º 1
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            EnsureChildValidatorsCreated();
            foreach (Control control in Controls)
            {
                BaseValidator validator = control as BaseValidator;
                validator.EnableClientScript = this.EnableClientScript;
                validator.Display            = this.Display;
                if (validator != null)
                {
                    validator.ApplyStyle(ValidatorStyle);
                }
            }
        }