Technical support This forum is closed.
Version 1.x > Technical support > CMSRepeater - accessing DataBinder.Eval(Container, "DataItem.AliasPath") in codebehind View modes: 
User avatar
Member
Member
JeremyThake - 1/11/2006 9:02:07 AM
   
CMSRepeater - accessing DataBinder.Eval(Container, "DataItem.AliasPath") in codebehind
Is there a way to access values such as <%#DataBinder.Eval(Container, "DataItem.AliasPath")%> in the codebehind when you create a transformation .ascx file?

I'm using nested repeaters and want to find out the current tranforming elements AliasPath. I've tried using Functions.GetAliasPath() (of the page rather than the repeater) but this is one level up from what I require e.g. '/events/event1' instead of '/events'.

I can then use this path for the SelectNodesPath property of the nested repeaters.

User avatar
Guest
admin - 1/12/2006 7:23:50 PM
   
Re: CMSRepeater - accessing DataBinder.Eval(Container, "DataItem.AliasPath") in codebehind
Hi Jeremy,

if you need to create a hierarchical repeater, please see the example in Developer's Guide -> Knowledge Base -> KB0015 - Displaying Hierarchical (Nested) Repeater.

Best Regards,

User avatar
Member
Member
JeremyThake - 1/13/2006 3:11:30 AM
   
Re: CMSRepeater - accessing DataBinder.Eval(Container, "DataItem.AliasPath") in codebehind
It was mainly regarding the previous post - http://www.kentico.com/Forums/ShowPost.aspx?PostID=673 where I am having problems with the alias paths.

User avatar
Guest
admin - 1/13/2006 3:06:47 PM
   
Re: CMSRepeater - accessing DataBinder.Eval(Container, "DataItem.AliasPath") in codebehind
Hi Jeremy,

I'm not sure if I understand the question now. Could you please try to explain it?

Thank you.

Regards,