This documentation is archived and is not being maintained.

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, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.