Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RaisePostBackEvent Method

TreeView.RaisePostBackEvent Method

Enables the TreeView control to process an event that is raised when a form is posted to the server. The RaisePostBackEvent method is a helper method for the ICallbackEventHandler.RaiseCallbackEvent method.

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

protected virtual void RaisePostBackEvent(
	string eventArgument


Type: System.String

A string that represents an optional event argument to pass to the event handler.

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 TreeView control also renders the HTML element that causes the postback event to occur. If the control renders client-side script to post back to the server, the argument from the script is passed in the eventArgument parameter. If the postback event is caused by a simple submit to the server, the eventArgument parameter is null.

The RaisePostBackEvent method provides the functionality for many events that are implemented by HTML and Web server controls.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft