MobileControl.Form Property


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.

 property System::Web::UI::MobileControls::Form ^ Form { System::Web::UI::MobileControls::Form ^ get(); };
public System.Web.UI.MobileControls.Form Form { get; }
member this.Form : System.Web.UI.MobileControls.Form
Public ReadOnly Property Form As Form

Property Value

The form that contains this control.



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.


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

See also