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
)
protected String GetPostBackFormReference (
	String formId
)
protected internal function GetPostBackFormReference (
	formId : String
) : String
Not applicable.

Parameters

formId

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

Return Value

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: