MobileControl::Form Property
Provides access to the containing form. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
| Exception | Condition |
|---|---|
| Exception | 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.