DataSourceControl.FindControl(String) 方法

定义

在当前的命名容器中搜索带指定 id 参数的服务器控件。Searches the current naming container for a server control with the specified id parameter.

public:
 override System::Web::UI::Control ^ FindControl(System::String ^ id);
public override System.Web.UI.Control FindControl (string id);
override this.FindControl : string -> System.Web.UI.Control
Public Overrides Function FindControl (id As String) As Control

参数

id
String

要查找的控件的标识符。The identifier for the control to be found.

返回

指定的控件,如果指定的控件不存在则为 nullThe specified control, or null if the specified control does not exist.

适用于