ASPX templates
Version 5.x > ASPX templates > Setting Path in code-behind View modes: 
User avatar
Member
Member
DahlinDev - 5/10/2010 12:20:00 PM
   
Setting Path in code-behind
I am working with the CMSListMenu. Is it possible to set the Path property in the code-behind?

I am setting it on page_load, but it doesn't seem to be working.

User avatar
Member
Member
kentico_pavelk - 5/11/2010 5:32:45 AM
   
RE:Setting Path in code-behind
Hello,

You may also need to call RealodData method in Page_Load method. Please find an example below.

menu.Path = "/News/%";
menu.ReloadData(true);


Best regards,
Pavel Knotek

User avatar
Member
Member
DahlinDev - 5/11/2010 9:53:22 AM
   
RE:Setting Path in code-behind
Yes , this is what was needed. Thank you.