asp.net.ph

Skip Navigation Links

Introduction to the Toolbar Control

Controls You Can Use on Web Forms   ASP.NET IE WebControls   Toolbar WebControl


The Toolbar WebControl simplifies the authoring of user interface ( UI ) elements used for invoking commands or navigating site content.

The Toolbar renders a menu-like interface that behaves similarly to the toolbars commonly used in Microsoft Windows applications.

Essentially, a Toolbar serves simply as a container for one or more ToolbarItem controls that users can select. The Toolbar supports the following types of controls.

Control Type Description
ToolbarButton Defines a button element.
ToolbarCheckButton Defines a check button element.
ToolbarCheckGroup Defines a group of check button elements.
ToolbarDropDownList Defines a drop-down list element.
ToolbarLabel Defines a non-interactive label.
ToolbarSeparator Defines a separator element.
ToolbarTextBox Defines a text box element.

The Toolbar offers a range of features. The control can contain either

  • text-based controls, if you only want to focus on the text content of the controls; and/or
  • image-based controls, if you want partial or full control over the appearance of the UI. The control supports the use of graphic elements inside any of its child elements.

In addition, the Toolbar can be set to render either horizontallly or vertically. The alignment of the elements in a Toolbar can be defined by setting the Orientation property.

The below examples illustrate using a simple Toolbar control.

Toolbar with Default Settings
Run Sample | View Source
Simple Image-Based Toolbar
Run Sample | View Source
Simple Image-Based Vertical Toolbar
Run Sample | View Source

The Toolbar includes default style and property settings that apply to all its child controls, but which can optionally be overwritten by explicitly setting specific style and/or property attributes for the Toolbar.

The style and/or property attributes can also be set for each child element, providing authors with greater flexibility when creating a personalized Toolbar control.

See Also

Adding Toolbar Controls to a Web Forms Page   Customizing the Toolbar Control User Interface



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note