June 2002
Intermediate to advanced
816 pages
28h 12m
English
HasControls
Boolean = Page.HasControls( )
Returns a Boolean value that indicates whether the page contains child controls.
Boolean
A Boolean value that indicates whether the page contains child controls.
The code example displays a message indicating whether the page has controls in its Controls collection, based on the value returned by HasControls:
Sub Page_Load( )
If Page.HasControls = True Then
Message.Text = "The page contains controls."
Else
Message.Text = "The page does not contain controls."
End If
End SubRead now
Unlock full access