Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > how to get currentdocument details of the document being accessed by repeater. View modes: 
User avatar
Member
Member
deepanshp-gmail - 1/23/2011 5:38:22 AM
   
how to get currentdocument details of the document being accessed by repeater.
I want to get the document details of the document being accessed by repeater and not the cmscontext.currentdocument. how can I do that?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 1/25/2011 2:47:55 PM
   
RE:how to get currentdocument details of the document being accessed by repeater.
Hello,

It depends on where you want to get those data. If in a transformation then you can simply use the <%# Eval("DocumentName") %> method. If you need to get to the documents in the repeater directly in the code behind you can use the following code (OnPreRender method):

repItems.DataSource;

And you can handle this object like a regular datasource.

Best regards,
Boris Pocatko