Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

accessing a pagetree container in the code behind

Hi - I'm using a page tree component which has Container.CurrentPage.PageName in the aspx page under each template type. I need to get access to this string in the code but am having problems getting it. private void TopMenuContainer_DataBinding(object sender, EventArgs e) PageTree ept = (PageTree) sender; PageTemplateContainer container = ept.NamingContainer as PageTemplateContainer; // i know the naming container is the use control that contains the pagetree control // but don't know how to get a hold of the pagetemplatecontainer string pageName = container.CurrentPage.PageName;
Oct 18, 2007 14:06
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.