Επεξεργασία

Κοινή χρήση μέσω


MobileControl.ResolveFormReference(String) Method

Definition

Returns the form object referenced by the name parameter. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with 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

Parameters

formID
String

Form object.

Returns

The form referenced by the name parameter.

Exceptions

formID does not refer to an existing Form.

Remarks

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.

Note

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.

Applies to

See also