RaisePostBackEvent Method
Collapse the table of content
Expand the table of content

Page.RaisePostBackEvent Method (IPostBackEventHandler, String)


Notifies the server control that caused the postback that it should handle an incoming postback event.

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

protected virtual void RaisePostBackEvent(
	IPostBackEventHandler sourceControl,
	string eventArgument


Type: System.Web.UI.IPostBackEventHandler

The ASP.NET server control that caused the postback. This control must implement the IPostBackEventHandler interface.

Type: System.String

The postback argument.

The Page object calls the RaisePostBackEvent method when a postback occurs. This call occurs in the page life cycle after loading and change notification are complete but before prerendering occurs.

The following example uses the RaisePostBackEvent method to notify ASP.NET that a post-back event is raised when a custom userButton server control is clicked.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft