override void OnInit (EventArgs e) { /* according to an msdn article, this is done here */ if (Page != null) { Page.Validators.Add (this); #if NET_2_0 Page.GetValidators (ValidationGroup).Add (this); #endif } base.OnInit (e); }