Display ASP Menu Control in Chrome / Safari

I had a problem displaying the standard asp.net menu control in Google Chrome and Safari

I was using master pages

but if you modify the source file behind your master page and include the following

C#
protected void Page_Load(object sender, EventArgs e)
{
if (Request.UserAgent.Contains("AppleWebKit")) Request.Browser.Adapters.Clear();
}

VB.NET
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
If Request.UserAgent.Contains("AppleWebKit") Then
Request.Browser.Adapters.Clear()
End If
End Sub

Comments

Popular posts from this blog

Basic Send Message to MQ with Java and IBM MQ JMS

Basic Receive Message to MQ with Java and IBM MQ JMS

Creating a simple Alert / Success Message with ASP.NET/VB using Bootstrap