Click here to Skip to main content
15,885,366 members
Articles / Web Development / ASP.NET

Site Navigation in ASP.NET 2.0

Rate me:
Please Sign up or sign in to vote.
3.40/5 (21 votes)
20 Sep 20054 min read 183.1K   2.1K   55  
Describes how to use Site Navigation capabilities in ASP.NET 2.0
Partial Class SmartPhone
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) _
    Handles Me.Load
        lblResult.Text = "Current Title: " & SiteMap.CurrentNode.Title & "<br>" & _
        "Parent: " & SiteMap.CurrentNode.ParentNode.Title.ToString & "<br>" & _
        "Root: " & SiteMap.CurrentNode.RootNode.ToString() & "<br>" & _
        "NextSibling: " & SiteMap.CurrentNode.NextSibling.ToString & "<br>" & _
        "Previous Sibling: " & SiteMap.CurrentNode.PreviousSibling.ToString & "<br>"
    End Sub
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Iran (Islamic Republic of) Iran (Islamic Republic of)
For more information about me just visit my blog @ Nayyeri.NET

Comments and Discussions