ProfilePropertyLoader.FindControl Method
Searches the page controls for a control of the specified type.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
Public Shared Function FindControl ( _
objPage As Page, _
controlType As Type _
) As Control
'Usage
Dim objPage As Page
Dim controlType As Type
Dim returnValue As Control
returnValue = ProfilePropertyLoader.FindControl(objPage, _
controlType)
public static Control FindControl(
Page objPage,
Type controlType
)
Parameters
objPage
Type: System.Web.UI.PageThe page to be searched.
controlType
Type: System.TypeThe Type of control to be found.
Return Value
Type: System.Web.UI.Control
The first control found that matches the Type..
Remarks
This method returns null if the objPage is null , or if a control is not found.