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
Hi, when doing like that you need to databind the menulist from code behind.
In pageLoad or something similiar just
MenuListControl.DataBind();
Hi.
I'm trying to figure out why my menu isn't showing.
The following code works:
<EPiServer:MenuList runat="server" id="MenuListControl" PageLink="2082">
<ItemTemplate>
</ItemTemplate>
</EPiServer:MenuList>
This does not work:
<EPiServer:MenuList runat="server" id="MenuListControl" PageLink="<%#menuRoot%>">
<ItemTemplate>
</ItemTemplate>
</EPiServer:MenuList>
And my code behind looks like this:
protected PageReference MenuRoot
{
get
{
return Configuration.StartPage;
}
}
and I am databinding the menuList. What's wrong??