User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 392,072 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,148 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 864 | Replies: 1
Reply
Join Date: Mar 2005
Posts: 70
Reputation: NewVBguy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 3
NewVBguy NewVBguy is offline Offline
Junior Poster in Training

Probably simple but giving me hard time

  #1  
Sep 8th, 2006
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2005
Location: Mostar
Posts: 88
Reputation: ManicCW is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 10
ManicCW's Avatar
ManicCW ManicCW is offline Offline
Junior Poster in Training

Re: Probably simple but giving me hard time

  #2  
Sep 9th, 2006
If you are using asp.net 2.0 you can use SiteMapPath control to display breadcrumb (if this is what you want ). 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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 12:06 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC