Skip to main content
Tab

MenuItem.FindControl(String) Method

Searches the current naming container for a server control with the specified id parameter.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public virtual Control FindControl(
    string id
)

Parameters

Name Type Description
id String

The identifier for the control to be found.

Returns

Type Description
Control

A Control object representing the specified control, or the null reference (Nothing in Visual Basic) if the specified control does not exist.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FindControl(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also