Menu.DynamicItemFormatString Property

Note: This property is new in the .NET Framework version 2.0.

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

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public:
property String^ DynamicItemFormatString {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_DynamicItemFormatString ()

/** @property */
public void set_DynamicItemFormatString (String value)

public function get DynamicItemFormatString () : String

public function set DynamicItemFormatString (value : String)

Property Value

The additional text or characters that appear with all menu items. The default value for this property is "{0}."

This property can be used to insert text to format dynamic menu items in a menu displayed on mobile devices. The Menu control supports templates for the display of static and dynamic menu items. For mobile devices, templates are ignored, so this property allows you to add characters or text to apply formatting to menu items without using a template.

NoteNote

To achieve consistent formatting when you use this property, you should also set the StaticItemFormatString 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.

The following code example demonstrates how to use the StaticItemFormatString and DynamicItemFormatString properties to add text to each menu item.

No code example is currently available or this language may not be supported.

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: