Rediger

Del via


PageAdapter.GetPostBackFormReference(String) Method

Definition

Returns a DHTML code fragment that the client browser can use to reference the form on the page that was posted.

protected public:
 virtual System::String ^ GetPostBackFormReference(System::String ^ formId);
protected internal virtual string GetPostBackFormReference (string formId);
abstract member GetPostBackFormReference : string -> string
override this.GetPostBackFormReference : string -> string
Protected Friend Overridable Function GetPostBackFormReference (formId As String) As String

Parameters

formId
String

A String containing the client ID of the form that was posted.

Returns

A String with a reference to the form on the page that was posted.

Remarks

The GetPostBackFormReference method provides a DHTML reference to the postback form. The code fragment has the following format:

document.forms[' formID ']

Notes to Inheritors

When you inherit from the PageAdapter class, you can override the GetPostBackFormReference(String) method if the markup for the browser supported by the adapter requires a different format for the postback form reference. For example, the HTML 3.2 standard used by PocketPC browsers requires the following format:

document.formID

Applies to

See also