System.Web.UI.IPostBackEventHandler.RaisePostBackEvent Method

When implemented by a class, enables a server control to process an event raised when a form is posted to the server.

Syntax

public void RaisePostBackEvent (string eventArgument)

Parameters

eventArgument
A string that represents an optional event argument to be passed to the event handler.

Remarks

The page passes the value of the eventArgument parameter to the RaisePostBackEvent method of the control that implements the System.Web.UI.IPostBackEventHandler interface. This control also renders the HTML element that causes the postback to occur. If the control renders client-side script for postback, the argument from the script is passed in the eventArgument parameter. If the postback is caused by a simple submit operation, the eventArgument parameter is null.

This method provides the functionality for many events implemented by HTML and Web server controls.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0