System.Web.UI.WebControls.Menu.StaticItemFormatString Property

Gets or sets additional text shown with all menu items that are statically displayed.

Syntax

[System.ComponentModel.DefaultValue("")]
public string StaticItemFormatString { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property can be used to insert text to format static menu items in a menu. This is particularly useful for mobile devices. The System.Web.UI.WebControls.Menu control supports templates for the display of static and dynamic menu items, but templates are ignored on mobile devices. This property allows you to add characters or text and to apply formatting to menu items for both mobile and desktop devices without using a template.

Note:

To achieve consistent formatting when you use this property, you should also set the Menu.DynamicItemFormatString property if you want the formatting to be identical between the static and dynamic menu items.

If both template formatting and this property are applied, the template formatting is ignored for mobile devices.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0