Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I have an aspnet navigation menu and it is flickering when there are a lot of DOM components in the matrix that is on the page. I am very confused on why. The orientation of the menu is horizontal but it will flicker vertically until the full page loads.

Any help will be great

<pre lang="c#">

CSS
.CssMenu ul.AspNet-Menu li.AspNet-Menu-Selected
{
   background: #1d68ac;
   display:none;
}


 &lt;style type="text/css"&gt;
        .divBodyBox {
            max-height: 100%;
            max-width: 100%;
            position: relative;
            top: 0;
            left: 0;
        }
        .newMain {
            box-shadow: 0px 0px 15px 10px #888888;
            border: 5px solid;
            /*/ Firefox /*/
            -moz-border-radius: 25px;
            /*/ Safari and chrome /*/
            -webkit-border-radius: 25px;
            /*/ Linux browsers /*/
            -khtml-border-radius: 25px;
            /*/ CSS3 /*/
            border-radius: 25px;
            /*behavior: url(border-radius.htc);*/
            behavior: url(PIE.htc); /*IE fix for: border-radius, box-shadow, */
            width: 90%; max-height:100%;
             margin: 0px auto 0px auto;
            background-color: #fff;
        }
        .newPage {
             box-shadow: 0px 0px 15px 10px #888888;
            border: 5px solid;
            -moz-border-radius: 25px;
            -webkit-border-radius: 25px;
            -khtml-border-radius: 25px;
            border-radius: 25px;
            background-color: #fff;
            margin: 0px auto 0px auto;
            /*behavior: url(border-radius.htc);*/
            behavior: url(PIE.htc); /*IE fix for: border-radius, box-shadow, */
        }
        .newTableMargin {
            width: 95%; height: 100%; margin-left:5%;
        }
        .newTd {
            width: 100%; height: 100%;
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body id="bdyMaster" class="divBodyBox"  runat="server"&gt;
    &lt;form id="form1"  runat="server"&gt;
        &lt;asp:ToolkitScriptManager ID="ToolkitScriptManager1" ScriptMode="Release" EnableScriptGlobalization="true" CombineScripts="true" runat="server"&gt;

        &lt;ul&gt;


            &lt;asp:Menu ID="NavigationMenu" runat="server" CssSelectorClass="CssMenu" Orientation="Horizontal" StaticSubMenuIndent="10px"&gt;
                <dynamichoverstyle bordercolor="Yellow" borderstyle="None" backcolor="#7C6F57" forecolor="White"></dynamichoverstyle>
                <statichoverstyle bordercolor="Yellow" borderstyle="None" backcolor="#7C6F57" forecolor="White"></statichoverstyle>
                <staticmenuitemstyle horizontalpadding="5px" verticalpadding="2px"></staticmenuitemstyle>
                <staticselectedstyle borderstyle="Solid" bordercolor="Black" borderwidth="5px" backcolor="#5D7B9D"></staticselectedstyle>
                <dynamicselectedstyle borderstyle="Solid" bordercolor="Black" borderwidth="5px" backcolor="#5D7B9D"></dynamicselectedstyle>
                <dynamicmenuitemstyle horizontalpadding="5px" verticalpadding="2px"></dynamicmenuitemstyle>
                <dynamicmenustyle cssclass="DynamicMenu" horizontalpadding="0px" verticalpadding="0px" backcolor="#F7F6F3"></dynamicmenustyle>


        &lt;/ul&gt;

        &lt;ul class="newMain"&gt;
            &lt;asp:ContentPlaceHolder ID="MainContent" runat="server"&gt;

                &lt;table style="width: 100%; height: 100%"&gt;
                    &lt;tr style="text-align: center"&gt;

                        &lt;td id="tdContentContainer" valign="top" align="center"&gt;
                            &lt;asp:ContentPlaceHolder ID="mainContentPlaceHolder" runat="server"&gt;

                        &lt;/td&gt;
                    &lt;/tr&gt;
                &lt;/table&gt;



        &lt;/ul&gt;
        &lt;ul&gt;
            &lt;br /&gt;


        &lt;/ul&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
Posted
Updated 22-Jan-15 9:15am
v2
Comments
Sergey Alexandrovich Kryukov 22-Jan-15 14:42pm    
To overcome flickering, one would need to see what's flickering. You did not provide any useful detail; what to fight with?
—SA
bobb024 22-Jan-15 14:49pm    
I have a screen shot but I do not see where I can upload that too
BacchusBeale 22-Jan-15 15:13pm    
We need code of page that is causing this problem
bobb024 23-Jan-15 14:05pm    
any thoughts, and I dont agree with this question being marked as 1. Maybe the site should allow for screen shots
Sinisa Hajnal 26-Jan-15 3:22am    
You can put the image onto flickr or somewhere and put the link here...

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