ASP.NET 2.0 boasts of a new Menu control. You can create multi-level menus using this. It is not the best, but is decent enough to satisfy most common needs.
One thing that I had a problem with recently, is that if you have a multi-level menu, clicking a parent will result in a postback to the server. This was not a problem, till we decided we would improve the performance by turning viewstate off for controls that did not need them. Now suddenly, when you click the top level item, certain controls in the current screen will lose state.
The way out is to set the selectable property of items that is not mapped to an action. This way not only do we avoid unwanted postback, but also get around a need to have unwanted viewstate.


"set the selectable property of items that is not mapped to an action."
Set which property? To which value?
Posted by: clintonG | September 12, 2005 at 11:21 PM