Click here to Skip to main content
14,775,019 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I am using menu control using sitemap. There are three roll and according to roll menu item are display in menu.Menu are in master page. Its working well but while loading the page menu item are flicker(showing all the menu item of all roll for little bit time say 1/10 second) and its looking ugly. Please anyone told me what i do so that not flicker and working smooth. Some code are as follows
<asp:Menu ID="MenuHome" runat="server" DataSourceID="SiteMapHomeDataSource" StaticSubMenuIndent="16px" MaximumDynamicDisplayLevels="2" Orientation="Horizontal"  StaticPopOutImageUrl="~/images/menu_drop.jpg" CssClass="menu_horizontal" Font-Bold="True" DynamicEnableDefaultPopOutImage="False" ItemWrap="True" TabIndex="1"  ForeColor="#CC3300">
   <DynamicHoverStyle Font-Underline="True" />
   <DynamicMenuItemStyle ForeColor="Black" Font-Bold="False" BackColor="#F0F0F0" HorizontalPadding="5px" CssClass="textAlignLeft"/>
   <DynamicMenuStyle CssClass="menuItem_cantainer" ForeColor="Black" />
  <StaticHoverStyle CssClass="hoverFrontMenu" Font-Bold="True" />

<asp:SiteMapDataSource ID="SiteMapHomeDataSource" runat="server" ShowStartingNode="false" SiteMapProvider="SiteMap" StartingNodeUrl="~/home.aspx"/>
Sergey Alexandrovich Kryukov 18-Mar-13 16:39pm
I see nothing flickering in this code. You can get flickering due to some redundant post-backs or JavaScript activity when you just loaded. Usually you can debug such cases.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900