tahirjadoon — 2011-03-07T11:43:17-05:00 — #1
This is classis asp.net 4 application, not an mvc application. I need advice setting up the navigation...
I already have navigatyion as List<T> nodes (name, description, url)
Some nodes may have child nodes (only one level) and show on mouse over.
I have the css and js in place and working great with static test navigation. I need advice about
- Should i use a menu control or a nested repeater control. The nested one is for the child item?
- I need to apply a class to parent ul and to parent li that has a child ul.
- I need to apply a "select" class to the parent li to show it as a selected node if the page showing is the same or is from under child nodes.
I need a kick in the right direction.
A sister application is in mvc, should i call an action that returns a partial view? Both are under the same domain...
imaginekitty — 2011-03-08T12:29:23-05:00 — #2
I used a nested ListView for this very purpose. My computer is down though and I don't have access to the files for a few days.
a_elnajjar — 2011-03-10T01:12:01-05:00 — #3
Use the menu controller and bind the data to your data source
wwb_99 — 2011-03-11T14:52:29-05:00 — #4
For classic, I would use a repeater at most -- no need to do anything more than write the list. We actually used XSLT back when we were doing web forms -- it was cleaner and quicker and made it easier to handle infinite nesting.