PageAdapter.GetPostBackFormReference(String) Method
In this article
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
']
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: