Problem with menus

  • Thread starter Thread starter Jeff
  • Start date Start date
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
 
Back
Top