Skip to main content
Tab

ASPxMenuBase.NavigateUrlFormatString Property

Gets or sets the pattern used to format item navigation URLs.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue("{0}")]
public string NavigateUrlFormatString { get; set; }

Property Value

Type Default Description
String "{0}"

A string value that represents the format pattern.

Remarks

Note

Display values can be formatted using the standard formatting mechanism. It allows you to format values using standard format patterns. Format specifiers for composing the format pattern are described in the Numeric Format Strings and Date and Time Format Strings topics.

Example

The following example illustrates how to use the NavigateUrlFormatString property to specify the NavigateUrl property with two parameters.

<dx:ASPxMenu ID="ASPxMenu1" runat="server" NavigateUrlFormatString="Categories.aspx?id={0}">
    <dx:MenuItem Text="Cat1" NavigateUrl="1" />
    <dx:MenuItem Text="Cat2" NavigateUrl="2" />
</dx:ASPxMenu>
See Also