This method searches for a locates control objects within the TemplateContainer associated with this UIObject by using the Id parameter to match against control Ids.
'Declaration
Public Overridable Function FindControl( _
ByVal As String _
) As Control
public virtual Control FindControl(
string
)
Parameters
- id
- The string Id value for the control to be located.
Return Value
If a control is located within the TemplateContainer of this UIObject that matches the passed in Id, the control reference is returned. Otherwise null is returned.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2