Skip to main content

ASPxPopupControlBase.FindControl(String) Method

Searches for the specified server control within specific template containers and the ASPxPopupControlBase.Controls collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


public virtual Control FindControl(
    string id


Name Type Description
id String

The identifier for the control to be found.


Type Description

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


Use the FindControl method to search window template containers (of the ASPxPopupControlBase.HeaderTemplate, ASPxPopupControl.WindowHeaderTemplate, ASPxPopupControl.WindowContentTemplate, ASPxPopupControlBase.FooterTemplate and ASPxPopupControl.WindowFooterTemplate types) and the ASPxPopupControlBase.Controls collection for a server control whose programmatic identifier (the ID property) equals the specified id parameter.


For ASPxPopupControl only:

The FindControl method doesn’t search for the specified control within locations defined at the level of individual popup windows from the ASPxPopupControl.Windows collection. These locations are specified by the PopupWindow.HeaderTemplate, PopupWindow.ContentTemplate, PopupWindow.FooterTemplate and ContentControlCollectionItem.Controls properties assigned at a window’s level. Use a particular popup window’s PopupWindow.FindControl method, to search within the window.

The FindControl method is not in effect if no template is defined at the control’s level or the ASPxPopupControlBase.Controls collection is empty.

See Also