UpdatePanelControlTrigger.FindTargetControl(Boolean) 方法

定义

搜索属性中指定的 ControlID 控件。

protected:
 System::Web::UI::Control ^ FindTargetControl(bool searchNamingContainers);
protected System.Web.UI.Control FindTargetControl(bool searchNamingContainers);
member this.FindTargetControl : bool -> System.Web.UI.Control
Protected Function FindTargetControl (searchNamingContainers As Boolean) As Control

参数

searchNamingContainers
Boolean

一个布尔值,该值指示是否以递归方式在包含当前 UpdatePanel 控件的命名容器中搜索控件。

返回

具有与属性匹配的 ID 的 ControlID 控件。

例外

ControlID属性UpdatePanelControlTriggernull或为空。

-或-

找不到具有指定控件 ControlID 的控件。

适用于