Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Not sure if i understand what you are asking for, but you can get the pageID from a pagelist frontend like this:
<%#Container.CurrentPage.PageLink.ID%>
and from backend you always have this:
page.PageLink.ID.
-Kjetil Simensen
I am using a MenuList to generate a menu.menu consists of pages like HOME,CONTACT,ABOUT US,CAREER etc.
Now I need to get the pageid of that corresponding page on click of a menu item.
How to get the pageid of that corresponding pagelink ? pls Help. Thanks in Advance.
Menu.ascx
****************************************************
<%@ Control Language="C#" EnableViewState="false" AutoEventWireup="False" CodeBehind="Menu.ascx.cs" Inherits="Templates.Public.Units.Static.Menu" %>
<EPiServer:MenuList runat="server" ID="Menu">
****************************************************<ItemTemplate>
<EPiServer:Property PropertyName="PageLink" runat="server" />
</ItemTemplate>
</EPiServer:MenuList>
C#
****************************************************
protected override void OnLoad(System.EventArgs e)
{
base.OnLoad(e);
Menu.PageLink = EPiServer.Core.PageReference.StartPage;
}