title: In DNN 9 - How do I display the name and link of the Active Page's Root level Parent?
body: <p>I am trying to add some code I found on this forum in my skin .ascx file to display the name and link of the Active Page's Root level Parent. I am using DNN 9.1.1.
  Here is where I found the code:
  <a href="https://stackoverflow.com/questions/43261564/how-to-get-name-link-of-parent-page-in-dnn">How to get name &amp; link of parent page in DNN</a></p>
  
  <pre><code>&lt;a href="&lt;%= ((DotNetNuke.Entities.Tabs.TabInfo)PortalSettings.ActiveTab.BreadCrumbs[0]).FullUrl %&gt;"&gt;&lt;%= ((DotNetNuke.Entities.Tabs.TabInfo)PortalSettings.ActiveTab.BreadCrumbs[0]).TabName %&gt;&lt;/a&gt;
  </code></pre>
  
  <p>It works visually, but I am getting some weird issues. With the code added, while in the edit mode, it makes a class="DNNAjaxPanel" div disappear. This div is used to help when you drag a module into a Content Panel. It is the div just above this div class="DNNEmptyPane dnnSortable dnnModuleManager ui-sortable"</p>
  
  <p>Use the Inspect Element feature of your browser and you will see what I mean.</p>
  
  <p>Here is a Screen shot with the div class="DnnAjaxPanel" that is there before I use the code:
  <a href="https://i.stack.imgur.com/8DtRe.png" rel="nofollow noreferrer">Screen shot with div class="DnnAjaxPanel"</a></p>
  
  <p>When I add the code it makes that div disappear. Then when I add a module to that Content Pane it makes all the modules go to that one Pane no matter what other content pane they are currently in.</p>
  
  <p>Is this a bug with DNN 9.1.1 or can I not use the code in my skin ascx file?</p>
  
  <p>Thanks,
  Craig</p>