This documentation is archived and is not being maintained.

MenuAdapter::RaisePostBackEvent Method

Used to maintain the path of the menu when a postback event is raised.

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

protected:
virtual void RaisePostBackEvent(
	String^ eventArgument
)

Parameters

eventArgument
Type: System::String
A String that represents the path of the current node in the menu hierarchy.

ExceptionCondition
InvalidOperationException

The depth of the current node is more than allowed. This can be caused by an invalid declaration, by a change since the last request, or by a forged (spoofed) request.

The RaisePostBackEvent method is called when the RaisePostBackEvent event is raised, and is used to maintain the navigation path of the menu. The eventArgument parameter contains a delimited string of menu items that identify the current location in the menu hierarchy.

The page passes the value of eventArgument to the associated control's RaisePostBackEvent method. The associated Menu control also renders the markup 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, eventArgument is nullptr.

.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.
Show: