Problem with menus

J

Jeff

I'm using visual studio 2005 and vb for some web pages. Although some older
ones worked fine under older versions of IE, I think the problem started
with IE 8 where the menus wouldn't display properly.

I think that we first noticed the problem in with Google Chrome when IE 7
was still around. At that time adding the code/sub below (that someone else
found for me) to the masterpage for the site seemed to solve the Chrome (and
Safari) problem.

The problem has now apparently resurfaced with IE8 (at least I think that
this is the origin of the problem - it could have been something else that
occurred with my server).

The main menu items appear fine, but the child items won't show.

Does anyone know what's going on and how to fix? (easy language please, I'm
new at this)

Thanks much,

Jeff


Protected Overrides Sub AddedControl(ByVal control As Control, ByVal index
As Integer)
If
Request.ServerVariables("http_user_agent").IndexOf("Chrome",
StringComparison.CurrentCultureIgnoreCase) <> -1 OrElse
Request.ServerVariables("http_user_agent").IndexOf("Safari",
StringComparison.CurrentCultureIgnoreCase) <> -1 Then
Me.Page.ClientTarget = "uplevel"
End If
MyBase.AddedControl(control, index)
End Sub
 
A

Andrew Morton

Jeff said:
I'm using visual studio 2005 and vb for some web pages. Although some
older ones worked fine under older versions of IE, I think the
problem started with IE 8 where the menus wouldn't display properly.

You could try the "ASP.NET 2.0 CSS Friendly Control Adapters":
http://www.asp.net/cssadapters/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top