I have an asp menu. The menu works fine. However, when I load help.aspx, the menu items display vertically. When the page completes loading, the menu items realign horizontally. This only happens on this page. All other pages are fine.
According to your description, this issue occurs when loading a lot of data. As far as I know, this would be Javascript that runs after or part way through the page load. In order to solve it, you may need to have CSS that
affects ul and li element which is overriding the expected design of Menu control. Please try to add css to the page using the following code below.
<style type="text/css">
#Menu1 ul li ul
{
display:none;
}
#Menu1 ul li
{
position: relative;
float: left;
list-style: none;
}
</style>
"Menu1" should be the Menu control id.
The second way, you could simply set "Table" to the RenderingMode property of Menu control. However, it is not efficient.
UnnownTerrit...
Member
3 Points
4 Posts
ASP menu drops vertically and then realigns itself after the page loads
May 27, 2012 03:39 PM|LINK
I have an asp menu. The menu works fine. However, when I load help.aspx, the menu items display vertically. When the page completes loading, the menu items realign horizontally. This only happens on this page. All other pages are fine.
What should I do?
Sage Gu - MS...
Contributor
6693 Points
578 Posts
Microsoft
Re: ASP menu drops vertically and then realigns itself after the page loads
May 29, 2012 08:29 AM|LINK
Hi,
According to your description, this issue occurs when loading a lot of data. As far as I know, this would be Javascript that runs after or part way through the page load. In order to solve it, you may need to have CSS that affects ul and li element which is overriding the expected design of Menu control. Please try to add css to the page using the following code below.
<style type="text/css"> #Menu1 ul li ul { display:none; } #Menu1 ul li { position: relative; float: left; list-style: none; } </style>"Menu1" should be the Menu control id.
The second way, you could simply set "Table" to the RenderingMode property of Menu control. However, it is not efficient.
Regards,
Sage Gu - MSFT
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
UnnownTerrit...
Member
3 Points
4 Posts
Re: ASP menu drops vertically and then realigns itself after the page loads
May 31, 2012 03:50 AM|LINK
I tried this and walah...it worked. Thanks! It solved a problem that almost seemed impossible.