Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Parent Page nameParent Page name
Previous
 
Next
New Post
11/18/2012 3:36 AM
 

Hello,

Please can you advise me to get the parent page name through C# code behind?

Ex: If I have pages called A,B,C, D and level from root to child A>B>C>D , I need to get A for all inner pages or in the parent pages. (A should be the result in all A,B,C, and D pgaes)

It seems working fine this in the skin file. 

<%=PortalSettings.ActiveTab.BreadCrumbs(PortalSettings.ActiveTab.Level - 1).TabName %>

But not sure if this is the exact correct one. But my requirement is as above.
But I need to get this to a label in C#.

Also please tell me also how can I get this in the ascx file to use as a skin object without going to code behind. How to bind this to a label value.

This is for DNN 6.

Thanks!

 
New Post
11/18/2012 10:08 AM
 
Thanks! I fixed this myself.
 
New Post
2/12/2014 5:53 PM
 

Can you please explain how you fixed this? I am looking for the same thing.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Parent Page nameParent Page name


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out