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
)
protected void RaisePostBackEvent (
	String eventArgument
)
protected function RaisePostBackEvent (
	eventArgument : String
)
Not applicable.

Parameters

eventArgument

A String that represents the path of the current node in the menu hierarchy.

Exception typeCondition

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 a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: