Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

asp.net

size

menu

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 must not reference any 3rd part DLL files (getting approval would be a nightmare)
  • Has to work with IE 6

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

like image 377
Jim Avatar asked Aug 07 '08 17:08

Jim


1 Answers

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

The default Menu control is rendering far too much HTML.

like image 169
KP. Avatar answered Nov 15 '22 17:11

KP.