This documentation is archived and is not being maintained.

PageAdapter::GetPostBackFormReference Method

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

Namespace:  System.Web.UI.Adapters
Assembly:  System.Web (in System.Web.dll)

protected public:
virtual String^ GetPostBackFormReference(
	String^ formId
)

Parameters

formId
Type: System::String
A String containing the client ID of the form that was posted.

Return Value

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

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

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.
Show: