MenuAdapter.RaisePostBackEvent(String) 方法
定义
用于在引发回发事件时维护菜单的路径。Used to maintain the path of the menu when a postback event is raised.
protected:
virtual void RaisePostBackEvent(System::String ^ eventArgument);
protected virtual void RaisePostBackEvent (string eventArgument);
abstract member RaisePostBackEvent : string -> unit
override this.RaisePostBackEvent : string -> unit
Protected Overridable Sub RaisePostBackEvent (eventArgument As String)
参数
- eventArgument
- String
一个 String,表示菜单层次结构中当前节点的路径。A String that represents the path of the current node in the menu hierarchy.
例外
当前节点的深度超出了允许范围。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.
注解
RaisePostBackEvent当引发事件时,将调用方法 RaisePostBackEvent ,用于维护菜单的导航路径。The RaisePostBackEvent method is called when the RaisePostBackEvent event is raised, and is used to maintain the navigation path of the menu. eventArgument参数包含用于标识菜单层次结构中当前位置的菜单项的分隔字符串。The eventArgument parameter contains a delimited string of menu items that identify the current location in the menu hierarchy.
页将的值传递 eventArgument 给关联的控件的 RaisePostBackEvent 方法。The page passes the value of eventArgument to the associated control's RaisePostBackEvent method. 关联的 Menu 控件还呈现导致回发发生的标记元素。The associated Menu control also renders the markup element that causes the postback to occur. 如果控件呈现用于回发的客户端脚本,则会在参数中传递脚本中的参数 eventArgument 。If the control renders client-side script for postback, the argument from the script is passed in the eventArgument parameter. 如果回发是由简单提交引起的, eventArgument 则为 null 。If the postback is caused by a simple submit, eventArgument is null.