pagelist

Vote:
 

hi i have an epi:pagelist and i want to take form it a propery and write its value into image src (both are in the pagelist)

i try to user container to do this but it does`nt work,

b.t.w

i want to change somthing from the server side to the inner control (like the img)

how i can get to the control??? 

#23906
Sep 18, 2008 15:40
Vote:
 

Hi Ben,

 It's a little bit hard to understand what your problem is. Can you give som examples of your code?

Tip: If you want to get a value from a page in the PageList you can use Container.CurrentPage.Property[yourPorpertyName].Value (or just Container.CurrentPage[yourPropertyName]).

-Kjetil Simensen

#23961
Sep 19, 2008 9:32
Vote:
 

Hi Ben.

You can also use the EPiServer:Property webcontrol to get a value from a page in the PageList. This because the PageList control implements the IPageSource interface.

<EPiServer:PageList PageLink="<%#EPiServer.Core.PageRegerence.StartPage%>" runat="server">

   <ItemTemplate>

      <EPiServer:Property PropertyName="PageName" runat="server" /> '

   </ItemTemplate>

</EPiServer:PageList>

BR,

Tore

#23963
Sep 19, 2008 10:15
Vote:
 

10X  Kjetil Simensen it works fine :)

#24639
Oct 02, 2008 16:39
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.