Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
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;
}