SiteMapPath Constructor ()
.NET Framework (current version)
Initializes a new instance of the SiteMapPath class.
Assembly: System.Web (in System.Web.dll)
Use this constructor to create and initialize a new instance of the SiteMapPath class. To dynamically add a SiteMapPath control to a page, create a new SiteMapPath object, set its properties, and then add it to the Control::Controls collection of a container control such as PlaceHolder.
The following code example demonstrates how to use the SiteMapPath constructor to add a SiteMapPath control to a page. For the example to work, you need to add an image to your root directory and change the image name in the example code from "myimage.jpg" to the name of your image file.
.NET Framework
Available since 2.0
Available since 2.0
Show: