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.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
id | String | The identifier for the control to be found. |
Returns
Type | Description |
---|---|
Control | A Control object that is the specified control, or the null reference (Nothing in Visual Basic) if the specified control does not exist. |
Remarks
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.
Note
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.