asp.net.ph

SiteMapPath.PathDirection Property

System.Web.UI.WebControls Namespace   SiteMapPath Class


.NET Framework version 2.0

Specifies the order in which the navigation path nodes in a SiteMapPath control are rendered.

Syntax


Inline <asp:sitemappath pathdirection = enumValue ... >
Script SiteMapPath.PathDirection = enumValue

Property Value


enumValue One of the PathDirection values.

The property is read/write with a default value of RootToCurrent, which indicates that the nodes are rendered in hierarchical order from the top-most node to the current node, from left to right.

Exceptions


Exception Type Condition
ArgumentException The given value is not one of the PathDirection values.

Remarks

Use the PathDirection property to specify the hierarchical order in which the navigation path nodes in a SiteMapPath control are rendered.

By default, the navigation path appears as a progression from left to right of site map nodes. In other words, the root node is at the leftmost position, each subsequent node is in the next position to the right, and the current node is in the rightmost position.

To display the navigation path from right to left, set PathDirection to CurrentToRoot. In other words, the node order is reversed so that the root node displays at the rightmost position and the current node displays at the leftmost position. While not as common, this ordering can be used for localizing Web Forms pages and the SiteMapPath control for languages that read from right to left.

See Also

SiteMapPath Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph