Edit

Share 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.

C#
protected internal virtual string GetPostBackFormReference(string formId);

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

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also