Control.HasControls Method ()
Determines if the server control contains any child controls.
Assembly: System.Web (in System.Web.dll)
Since this method simply determines if any child controls exist, it can enhance performance by allowing you to avoid an unnecessary Count property call. Calls to this property require a ControlCollection object to be instantiated. If there are no children, this object creation wastes server resources.
Notes to Inheritors:
Available since 1.1