J
John
Hi there,
I have a CSS based menu in a master page that uses class attributes to
determine which item is currently selected. So, for example if the Homepage
is currently the active page then its list item tag carries a class
attribute of "current", while all other items carry one of "select".
What I want to know is what is the best approach to change these attributes
based on the current content page. Should I be changing the attribute in
the pre-render event using HTMLTextWriter or would some kind of client-side
script work better here?
All advice is welcome! What's best practice?
Thanks
John
I have a CSS based menu in a master page that uses class attributes to
determine which item is currently selected. So, for example if the Homepage
is currently the active page then its list item tag carries a class
attribute of "current", while all other items carry one of "select".
What I want to know is what is the best approach to change these attributes
based on the current content page. Should I be changing the attribute in
the pre-render event using HTMLTextWriter or would some kind of client-side
script work better here?
All advice is welcome! What's best practice?
Thanks
John