November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Ammendum:
Theres definatly something funky going on with:
PageLink='<%# EPiServer.Core.PageReference.StartPage %>'
As literally hardcoding the Page ID into this property works!
PageLink='1'
As literally hardcoding the Page ID into this property works!
This is all rather confusing, as <%# PageReference.StartPage.ID %> and <%# PageReference.StartPage.ToString() %>also don't work, but a hard coded ID is fine.
If anyone can help bring clarity that would be great, Ideally I'd like to be able to use something like this:
PageLink="<%# new PageReference(3) %>"
This strikes me as the proper way to pass a pagereference to the control by way of an ID, however hard coded ID without any binding control is ok for now.
You need to call DataBind() on your control from codebehind if you want to use databinding (<%#) syntax in the server attributes.
I hope someone can help really quickly with this one.
I have a simple search results page, copied from the AlloyTech Example Templates. Here is my Datasource control:
I want to change this and hardcode the PageLink (so editors cant change it). From various pages on the web I see this syntax :
But when I use this syntax I always get no results. Please help! What am I doing wrong here?