System.Web.UI.WebControls.Menu: Method Members

The methods of System.Web.UI.WebControls.Menu are listed below. For a list of all members, see the Menu Members list.

See Also: Inherited members from System.Web.UI.WebControls.HierarchicalDataBoundControl

Public Methods

override
DataBind()

Binds the data source to the System.Web.UI.WebControls.Menu control. This method cannot be inherited.

FindItem(string) : MenuItem

Retrieves the menu item at the specified value path.

override
RenderBeginTag(System.Web.UI.HtmlTextWriter)

Adds tag attributes and writes the markup for the opening tag of the control to the output stream emitted to the browser or device.

override
RenderEndTag(System.Web.UI.HtmlTextWriter)

Performs final markup and writes the HTML closing tag of the control to the output stream emitted to the browser or device.

Protected Methods

override
AddAttributesToRender(System.Web.UI.HtmlTextWriter)

Adds HTML attributes and styles that need to be rendered to the specified System.Web.UI.HtmlTextWriter object.

override
CreateChildControls()

Creates the child controls of a System.Web.UI.WebControls.Menu control.

override
EnsureDataBound()

Verifies that the menu control requires data binding and that a valid data source control is specified before calling the Menu.DataBind method.

override
GetDesignModeState() : IDictionary

Retrieves the design-time state of the System.Web.UI.WebControls.Menu control.

override
LoadControlState(object)

Loads the state of the properties in the System.Web.UI.WebControls.Menu control that need to be persisted.

override
LoadViewState(object)

Loads the previously saved view state of the System.Web.UI.WebControls.Menu control.

override
OnBubbleEvent(object, EventArgs) : bool

Determines whether the event for the System.Web.UI.WebControls.Menu control is passed up the page's user interface (UI) server control hierarchy.

override
OnDataBinding(EventArgs)

Raises the System.Web.UI.Control.DataBinding event.

override
OnInit(EventArgs)

Raises the System.Web.UI.Control.Init event.

OnMenuItemClick(MenuEventArgs)

Raises the Menu.MenuItemClick event.

OnMenuItemDataBound(MenuEventArgs)

Raises the Menu.MenuItemDataBound event.

override
OnPreRender(EventArgs)

Raises the System.Web.UI.Control.PreRender event.

override
PerformDataBinding()

Binds the items from the data source to the menu items in the System.Web.UI.WebControls.Menu control.

RaisePostBackEvent(string)

Processes an event raised when a form is posted to the server.

override
Render(System.Web.UI.HtmlTextWriter)

Renders the menu control on the client browser.

override
RenderContents(System.Web.UI.HtmlTextWriter)

This member overrides WebControl.RenderContents(System.Web.UI.HtmlTextWriter).

override
SaveControlState() : object

Saves the state of the properties in the System.Web.UI.WebControls.Menu control that need to be persisted.

override
SaveViewState() : object

Saves the state of the System.Web.UI.WebControls.Menu control.

override
SetDesignModeState(IDictionary)

Sets design-time data for the System.Web.UI.WebControls.Menu control.

SetItemDataBound(MenuItem, bool)

Sets the MenuItem.DataBound property of the specified System.Web.UI.WebControls.MenuItem object with the specified value.

SetItemDataItem(MenuItem, object)

Sets the MenuItem.DataItem property of the specified System.Web.UI.WebControls.MenuItem object with the specified value.

SetItemDataPath(MenuItem, string)

Sets the MenuItem.DataPath property of the specified System.Web.UI.WebControls.MenuItem object with the specified value.

override
TrackViewState()

Tracks view-state changes to the System.Web.UI.WebControls.Menu control so they can be stored in the control's System.Web.UI.StateBag object. This object is accessible through the System.Web.UI.Control.ViewState property.