DataSourceControl.FindControl(String) DataSourceControl.FindControl(String) DataSourceControl.FindControl(String) DataSourceControl.FindControl(String) Method

定義

在目前命名容器搜尋具有指定 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 String String String

所要尋找的控制項識別項。The identifier for the control to be found.

傳回

指定的控制項,如果指定的控制項不存在,則為 nullThe specified control, or null if the specified control does not exist.

適用於