Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sitemap works but my drop downs from asp:Menu are blank

1 view
Skip to first unread message

Cal Who

unread,
Nov 21, 2009, 2:28:32 PM11/21/09
to
My drop downs for asp:Menu are simply white rectangles.

However my site map works ok.

Do you know what might cause that?

Thanks

Alexey Smirnov

unread,
Nov 22, 2009, 3:28:20 PM11/22/09
to

Give an example of the code, please.

Cal Who

unread,
Nov 22, 2009, 3:51:34 PM11/22/09
to

"Alexey Smirnov" <alexey....@gmail.com> wrote in message
news:1deae7eb-9c28-4e18...@c3g2000yqd.googlegroups.com...

That would be a lot of text.

But anyway, The problem went away by itself.


Thanks for replying


Alexey Smirnov

unread,
Nov 23, 2009, 3:54:45 AM11/23/09
to
On Nov 22, 9:51 pm, " Cal Who" <CalWh...@roadrunner.com> wrote:
> "Alexey Smirnov" <alexey.smir...@gmail.com> wrote in message

Great. I think it was something with an encoding.

Cal Who

unread,
Nov 23, 2009, 4:32:26 PM11/23/09
to

"Cal Who" <CalW...@roadrunner.com> wrote in message
news:eYMzRDu...@TK2MSFTNGP04.phx.gbl...
I thought the problem when away but that was because it doesn't happen in FF
only in IE8 and I started to us FF.

In fact, in IE8 I opened the developer tool and changed to Quirks mode or
IE7 and it works OK.

Do you have a suggestion as to what I should do?

The menu code follows.

<asp:Menu runat="server" ID="MainMenuTop" StaticDisplayLevels="2"
DataSourceID="SiteMapDataSource1"

Orientation="Horizontal" StaticMenuItemStyle-Font-Names="verdana, arial,
helvetica, sans-serif"

StaticEnableDefaultPopOutImage="false" StaticMenuItemStyle-CssClass="alink"

StaticHoverStyle-CssClass="ahover" StaticSelectedStyle-CssClass="avisited"

StaticSubMenuIndent="0px"


DynamicMenuItemStyle-Font-Names="verdana, arial, helvetica, sans-serif"

DynamicEnableDefaultPopOutImage="false"
DynamicMenuItemStyle-CssClass="alink"

DynamicHoverStyle-CssClass="ahover"
DynamicSelectedStyle-CssClass="avisited">


<StaticMenuItemStyle ItemSpacing="6px" />

<DynamicMenuItemStyle HorizontalPadding="2px" VerticalPadding="6px" />

<StaticMenuItemStyle HorizontalPadding="2px" VerticalPadding="8px" />

</asp:Menu>


Thanks


Cal Who

unread,
Nov 23, 2009, 5:01:00 PM11/23/09
to

" Cal Who" <CalW...@roadrunner.com> wrote in message
news:%23j0e1RI...@TK2MSFTNGP04.phx.gbl...
I found one way. That is to put IE into IE7 mode
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

Alexey Smirnov

unread,
Nov 23, 2009, 6:12:09 PM11/23/09
to
On Nov 23, 11:01 pm, " Cal Who" <CalWh...@roadrunner.com> wrote:
> " Cal Who" <CalWh...@roadrunner.com> wrote in messagenews:%23j0e1RI...@TK2MSFTNGP04.phx.gbl...
>
>
>
>
>
> > "Cal Who" <CalWh...@roadrunner.com> wrote in message
> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />- Hide quoted text -
>
> - Show quoted text -

Okay, I think I got it now. I've been confused by your first post and
thought that it might be something different. ASP Menu has some known
issues, please look in to the following post
http://blogs.msdn.com/giorgio/archive/2009/02/01/asp-net-menu-and-ie8-rendering-white-issue.aspx
and see if it will help you.

Cal Who

unread,
Nov 23, 2009, 7:36:53 PM11/23/09
to

"Alexey Smirnov" <alexey....@gmail.com> wrote in message
news:6c23593f-568a-4e37...@o31g2000vbi.googlegroups.com...

======
I had already found and used the meta solution but it meant running IE* as
IE7
Your site shows a much better solution using css and I moved to that.

Thanks


Alexey Smirnov

unread,
Nov 24, 2009, 2:52:17 AM11/24/09
to
On Nov 24, 1:36 am, " Cal Who" <CalWh...@roadrunner.com> wrote:
> "Alexey Smirnov" <alexey.smir...@gmail.com> wrote in message
> issues, please look in to the following posthttp://blogs.msdn.com/giorgio/archive/2009/02/01/asp-net-menu-and-ie8...

> and see if it will help you.
> ======
> I had already found and used the meta solution but it meant running IE* as
> IE7
> Your site shows a much better solution using css and I moved to that.
>
> Thanks- Hide quoted text -

>
> - Show quoted text -

Glad that it helped. The problem is that by default IE8 (unlike all
the previous ones) is following CSS standards. Specifically,
(element).currentStyle.zIndex returns "auto" in Standard mode when
zindex has not been set. The ASP.NET Menu control assumes a different
value and that's why it failed. It either necessary to use the X-UA-
Compatible header or META tag with ASP.NET pages that use this
control, or you may also apply the following hotfix

FIX: The pop-out menus are not displayed when you use Internet
Explorer 8.0 in Standards mode to view an ASP.NET Web page that has
dynamic menus
http://support.microsoft.com/kb/962351

0 new messages