MobileControl.ResolveFormReference(String) 方法

定义

返回名称参数引用的窗体对象。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

public:
 System::Web::UI::MobileControls::Form ^ ResolveFormReference(System::String ^ formID);
public System.Web.UI.MobileControls.Form ResolveFormReference(string formID);
member this.ResolveFormReference : string -> System.Web.UI.MobileControls.Form
Public Function ResolveFormReference (formID As String) As Form

参数

formID
String

Form 对象。

返回

名称参数引用的表单。

例外

formID 不引用现有 Form

注解

如果在用户控件中包含的控件中有格式为“#form1”的链接,此方法在用户控件中查找窗体 id=form1 。 如果未找到,它将转到任何嵌套用户控件的链,然后在页面上搜索窗体。

注释

范围规则向上,而不是向下,链。 如果要浏览到用户控件中包含的窗体,则必须使用方法使用的 FindControl “:”语法来引用窗体。

适用于

另请参阅