Page.GetPostBackEventReference Method
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 string that can be used in a client event to cause postback to the server. This method has been deprecated. Use the GetPostBackEventReference method in the ClientScriptManager class instead.
Overloads
GetPostBackEventReference(Control) |
Obsolete.
Returns a string that can be used in a client event to cause postback to the server. The reference string is defined by the specified Control object. |
GetPostBackEventReference(Control, String) |
Obsolete.
Returns a string that can be used in a client event to cause postback to the server. The reference string is defined by the specified control that handles the postback and a string argument of additional event information. |
GetPostBackEventReference(Control)
Caution
The recommended alternative is ClientScript.GetPostBackEventReference. http://go.microsoft.com/fwlink/?linkid=14202
Returns a string that can be used in a client event to cause postback to the server. The reference string is defined by the specified Control object.
public:
System::String ^ GetPostBackEventReference(System::Web::UI::Control ^ control);
public string GetPostBackEventReference(System.Web.UI.Control control);
[System.Obsolete("The recommended alternative is ClientScript.GetPostBackEventReference. http://go.microsoft.com/fwlink/?linkid=14202")]
public string GetPostBackEventReference(System.Web.UI.Control control);
member this.GetPostBackEventReference : System.Web.UI.Control -> string
[<System.Obsolete("The recommended alternative is ClientScript.GetPostBackEventReference. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.GetPostBackEventReference : System.Web.UI.Control -> string
Public Function GetPostBackEventReference (control As Control) As String
Parameters
- control
- Control
The server control to process the postback on the server.
Returns
A string that, when treated as script on the client, initiates the postback.
- Attributes
Remarks
This method has been deprecated. Use the GetPostBackEventReference method in the ClientScriptManager class instead.
See also
Applies to
GetPostBackEventReference(Control, String)
Caution
The recommended alternative is ClientScript.GetPostBackEventReference. http://go.microsoft.com/fwlink/?linkid=14202
Returns a string that can be used in a client event to cause postback to the server. The reference string is defined by the specified control that handles the postback and a string argument of additional event information.
public:
System::String ^ GetPostBackEventReference(System::Web::UI::Control ^ control, System::String ^ argument);
public string GetPostBackEventReference(System.Web.UI.Control control, string argument);
[System.Obsolete("The recommended alternative is ClientScript.GetPostBackEventReference. http://go.microsoft.com/fwlink/?linkid=14202")]
public string GetPostBackEventReference(System.Web.UI.Control control, string argument);
member this.GetPostBackEventReference : System.Web.UI.Control * string -> string
[<System.Obsolete("The recommended alternative is ClientScript.GetPostBackEventReference. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.GetPostBackEventReference : System.Web.UI.Control * string -> string
Public Function GetPostBackEventReference (control As Control, argument As String) As String
Parameters
- control
- Control
The server control to process the postback.
- argument
- String
The parameter passed to the server control.
Returns
A string that, when treated as script on the client, initiates the postback.
- Attributes
Remarks
This method has been deprecated. Use the GetPostBackEventReference method in the ClientScriptManager class instead.