System.Web.UI.WebControls.BaseValidator.OnUnload C# (CSharp) Method

OnUnload() protected method

protected OnUnload ( EventArgs e ) : void
e System.EventArgs
return void
		override void OnUnload (EventArgs e)
		{
			/* according to an msdn article, this is done here */
			if (Page != null) {
				Page.Validators.Remove (this);

#if NET_2_0
				if (ValidationGroup != "")
					Page.GetValidators (ValidationGroup).Remove (this);
#endif

			}
			base.OnUnload (e);
		}