protected internal virtual void RemovedControl (Control control) { control.UnloadRecursive (false); control._parent = null; control._page = null; control._namingContainer = null; if ((control.stateMask & AUTOID_SET) != 0) { control._userId = null; control.SetMask (ID_SET, false); } control.NullifyUniqueID (); control.SetMask (REMOVED, true); ResetControlsCache (); }