MobileControl.ResolveFormReference Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the form object referenced by the name parameter. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

member ResolveFormReference : 
        formID:string -> Form

Parameters

formID
Type: System.String

Form object

Return Value

Type: System.Web.UI.MobileControls.Form

The form referenced by the name parameter.

Exception Condition
Exception

formID does not refer to an existing Form.

If you have a link of the format "#form1" in a control contained in a user control, this method looks for a form with id=form1 in the user control. If not found, it goes up the chain of any nested user controls, and then searches for the form on the page.

System_CAPS_noteNote

Scoping rules walk up, not down, the chain. If you want to browse to a form that is contained in a user control, you must use the ":" syntax used by FindControl method to refer to the form.

.NET Framework
Available since 1.1

FindControl
MobileControl Class
System.Web.UI.MobileControls Namespace
Creating Custom Mobile Controls
Inside the ASP.NET Mobile Controls

Return to top
Show: