Tuesday, June 29, 2010

Asp.Net Menu problem with Chome, Safari and Opera

In the past I published another post regarding the malfunction of Asp.Net Menu componente with IE8. Now I write about this component problems with other browsers: Chrome, Safari and Opera.

With these browsers the menu doesn't work properly, it disappears when clicked.

To made it work, add this code snippet in every page that contains a menu definition, into Page_Init event:

If Request.UserAgent.Contains("AppleWebKit") Then
End If

If Request.UserAgent.Contains("AppleWebKit") Request.Browser.Adapters.Clear() ;

No comments: