Search for:
Sign in
Register
Menu
Articles
Questions & Answers
Download
Documentation
Support
Marketplace
Old Forums
Search:
Search text
ASPX templates
Version 5.x
>
ASPX templates
>
Setting Path in code-behind
View modes:
View mode
Threaded
Flat - newest to oldest
Flat - oldest to newest
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.
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
Member
DahlinDev
-
5/11/2010 9:53:22 AM
RE:Setting Path in code-behind
Yes , this is what was needed. Thank you.
Top