Xml.FindControl(String) 方法

定义

在页面命名容器中搜索指定的服务器控件。

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

要找到的控件的标识符。

返回

指定的控件;否则, null 如果指定的控件不存在。

适用于

另请参阅