Reduce ASP.NET menu control size (without 3rd party libraries) *

Question

I have a fairly simple ASP.NET 2.0 menu control using a sitemap file and security trimmings. There are only 21 menu options, but the results HTML of the menu is a whopping 14k. The site is hosted on our company's intranet and must be serverd to people worldwide on limited bandwidth, so I'd like to reduce the size of the menus.

What is the best way to do this? Does anybody have a good reference? I have the following constraints:

  • The solution cannot reference any 3rd part DLL files (getting approval would be a nightmare)
  • Must work with IE 6

CSS and JavaScript are fine, as long as they work with IE 6.

Answer

Take a look at: http://www.asp.net/CSSAdapters/Menu.aspx

The default Menu control is rendering far too much HTML.

< br > via < a class="StackLink" href=" http://stackoverflow.com/questions/5027/" >Reduce ASP.NET menu control size (without 3rd party libraries)< /a>
Share on Google Plus

About Cinema Guy

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment