The Artima Developer Community
Sponsored Link

.NET Buzz Forum
ASP.NET 2 Menu Control Gotcha

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Anand M

Posts: 984
Nickname: anandm
Registered: May, 2004

Anand M is a VB.NET MVP working as a Senior Architect @ Polaris Software Lab Ltd
ASP.NET 2 Menu Control Gotcha Posted: Jul 13, 2005 8:41 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Anand M.
Original Post: ASP.NET 2 Menu Control Gotcha
Feed Title: .NET From India
Feed URL: http://www.dotnetindia.com/index.rss
Feed Description: Your daily dose of .NET From India
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Anand M
Latest Posts From .NET From India

Advertisement

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.

Read: ASP.NET 2 Menu Control Gotcha

Topic: Note to Self: Rolling Wave project scheduling Previous Topic   Next Topic Topic: MVP Info

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use