J
JJ
Question: Which controls to use as menus:
=============================
I must be approaching this the wrong way, as it clearly must be possible.
I am writing a very basic CMS. At the top of the page will be a menu 'main
categories' and at the side will be a menu 'sub categories'.
The page being viewed is calculated from the querystring. A bit of code then
gets the relevent main category and subcategory for that pageID.
The SubCategories my themselves have child categories, so I want a
subcategory to expand (rather like a treeview node) when the user clicks on
one that has child categories.
My basic problem here is finding a control that I can
(i) Customise the look and feel of
(ii) Set the 'selected item' programmatically in case the user gets to the
page without clicking on a menu item
I've though about using a MENU control for the main categories, and a
treeview for the sub categories, but I don't think I can set which item, is
selected programmatically can I?
Perhaps I should be using other controls and using CSS styles to set the
selected items look?
Anyone suggest an approach?
JJ
=============================
I must be approaching this the wrong way, as it clearly must be possible.
I am writing a very basic CMS. At the top of the page will be a menu 'main
categories' and at the side will be a menu 'sub categories'.
The page being viewed is calculated from the querystring. A bit of code then
gets the relevent main category and subcategory for that pageID.
The SubCategories my themselves have child categories, so I want a
subcategory to expand (rather like a treeview node) when the user clicks on
one that has child categories.
My basic problem here is finding a control that I can
(i) Customise the look and feel of
(ii) Set the 'selected item' programmatically in case the user gets to the
page without clicking on a menu item
I've though about using a MENU control for the main categories, and a
treeview for the sub categories, but I don't think I can set which item, is
selected programmatically can I?
Perhaps I should be using other controls and using CSS styles to set the
selected items look?
Anyone suggest an approach?
JJ