Прочетете на английски Редактиране

Споделяне чрез


MobileControl.Form Property

Definition

Provides access to the containing form. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

C#
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public System.Web.UI.MobileControls.Form Form { get; }

Property Value

The form that contains this control.

Attributes

Exceptions

the control is not in a form as required. The only mobile controls not required to be in a Form are a Form and a StyleSheet.

Examples

The following example demonstrates how to use the Form property to determine whether the active form is a particular form in the ASP.NET mobile Web application. This example is part of a larger example for the EnsureTemplatedUI property.

Applies to

Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also