System.Web.UI.WebControls.TreeView.RaisePostBackEvent Method

Enables the System.Web.UI.WebControls.TreeView control to process an event that is raised when a form is posted to the server. The TreeView.RaisePostBackEvent(string) method is a helper method for the TreeView.System#Web#UI#ICallbackEventHandler#RaiseCallbackEvent(string) method.

Syntax

protected virtual void RaisePostBackEvent (string eventArgument)

Parameters

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

Remarks

The page passes the value of the eventArgument parameter to the TreeView.RaisePostBackEvent(string) method of the control that implements the System.Web.UI.IPostBackEventHandler interface. This System.Web.UI.WebControls.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 TreeView.RaisePostBackEvent(string) method provides the functionality for many events that are implemented by HTML and Web server controls.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0