Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp:menu - What are the 'Items Remaining' that take so long to load

Status
Not open for further replies.

mbiro

Programmer
Nov 20, 2001
304
I have a master page with an asp:menu control. The control has both static and dynamic templates. each page I go to on my site, there is a message in the status bar at the bottom of the browser that says '(150 Items Remaining) and it counts down from 150 to 0. This takes several seconds on each page load. I have tried binding the control to both XML and a sql server sitemap, it makes no difference. It always does the countdown of remaining items. If I remove the menu control, the page loads fast with no countdown. Have I done something wrong? I tried adjusting the caching, but again no affect.
 
Here is the control:

Code:
<asp:Menu ID="Menu1" Orientation="Horizontal" DynamicBottomSeparatorImageUrl="imagesDA/sep.gif" DynamicPopOutImageUrl="imagesDA/expand.gif" StaticEnableDefaultPopOutImage="false" StaticPopOutImageUrl="" runat="server" BackColor="#000000" DynamicHorizontalOffset="2" Font-Names="Verdana" ForeColor="#990000" MaximumDynamicDisplayLevels="5" StaticSubMenuIndent="0px" StaticDisplayLevels="1" DynamicMenuStyle-BackColor="#000000" DynamicMenuStyle-BorderColor="#FFFFFF" DynamicMenuStyle-BorderStyle="Solid" DynamicMenuStyle-BorderWidth="2px" SkipLinkText="" DisappearAfter="1000" >
    <StaticItemTemplate><td><img src="imagesDA/<%# Eval("Value") %>" width="3" height="23" border="0" id="mainNav_div<%# right(Eval("NavigateUrl"),1) %>" alt="" /></td><td><a href="<%# Eval("NavigateUrl") %>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('mainNav_div<%# right(Eval("NavigateUrl"),1) %>','','imagesDA/mainNav_div<%# right(Eval("NavigateUrl"),1) %>_over.gif','mainNav_div<%# cint(right(Eval("NavigateUrl"),1))+1 %>','','imagesDA/mainNav_div<%# cint(right(Eval("NavigateUrl"),1))+1 %>_over.gif',1)"><img height="23px" style="padding:0 0 0 0; border-width:0px;" onmouseover="this.src='<%# "imagesDA/" & Eval("ImageUrl") & "_over.gif" %>'" onmouseout="this.src='<%# "imagesDA/" & Eval("ImageUrl") & ".gif" %>'" src="<%# "imagesDA/" & Eval("ImageUrl") & ".gif" %>" /></a></td></StaticItemTemplate>
   <DynamicItemTemplate>
    <a href="<%# Eval("NavigateUrl") %>"><div class="mainNavD<%# Eval("ImageUrl") %>" onmouseover="this.className='mainNavDHover<%# Eval("ImageUrl") %>'" onmouseout="this.className='mainNavD<%# Eval("ImageUrl") %>'">
      <%# Eval("Text") %>
    </div></a>
  </DynamicItemTemplate>
       </asp:Menu>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top