Hi there,
My plan is just to display the parent and chile page name/id on my wep pages. So what I am trying to do is to put a label control in each page to handle the display. Is there a control that handle this thing. Or how can i do that in code. Sorry i am a newbie in asp.net. Please help.

thnx.

newvbguy

If you are using asp.net 2.0 you can use SiteMapPath control to display breadcrumb (if this is what you want :confused: ). If you are using asp.net 1.1 (or 2.0) you can use this code:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If IsNothing(Page.Request.UrlReferrer) = False Then
            Dim parent As String = Request.UrlReferrer.PathAndQuery.ToString
            Me.lblParent.Text = parent.Substring(parent.LastIndexOf("/") + 1)
        End If
    End Sub

I hope this is ehat you are looking for. :?:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.