Ejemplo n.º 1
0
 protected override void OnPreRender(EventArgs e)
 {
     base.OnPreRender(e);
     if (ScriptManager == null || !ScriptManager.SupportsPartialRendering)
     {
         return;
     }
     ValidatorHelper.DoPreRenderRegistration(this, this);
 }
Ejemplo n.º 2
0
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     if (ScriptManager == null || !ScriptManager.SupportsPartialRendering)
     {
         return;
     }
     ValidatorHelper.DoInitRegistration(Page);
 }
        protected override void RegisterValidatorDeclaration()
        {
            if (ScriptManager == null || !ScriptManager.SupportsPartialRendering)
            {
                base.RegisterValidatorDeclaration();
                return;
            }

            ValidatorHelper.DoValidatorArrayDeclaration(this, typeof(BaseValidator));
        }
        protected override void AddAttributesToRender(HtmlTextWriter writer)
        {
            if (ScriptManager == null || !ScriptManager.SupportsPartialRendering)
            {
                base.AddAttributesToRender(writer);
                return;
            }

            ValidatorHelper.DoBaseValidatorAddAttributes(this, this, writer);
        }