ASP.NET Menu Control Cannot Work in Google Chrome browser and Apple Safari browser

Problem

If your website is using ASP.NET Menu Control, the menu part will not work in Google Chrome browser and Apple Safari browser. The look and feel of the main menu is different. Submenu does not show up.

Solution

There is an easy fix for this problem. Just copy and paste the following codes to your page load event of your code behind master page file. You may need to copy it to every page if you do not use master page.

    Partial Class Main
	    Inherits System.Web.UI.MasterPage

        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            If Request.UserAgent.IndexOf("AppleWebKit") > 0 Then
                Request.Browser.Adapters.Clear()
            End If
        End Sub
    End Class
    

Navigator

Other Knowledgebase Articles

Shared .NET Hosting

# of Domains: 1
# of SQL Server Databases: 1
Disk Space: Unlimited
Bandwidth: Unlimited
Email: Unlimited
SQL Server 2008 R2
Monthly: $2.99
More Information About Unlimited Shared ASP.NET Hosting Plan

Reseller .NET Hosting

# of Domains: 10
# of SQL Server Databases: 10
Disk Space: Unlimited
Bandwidth: Unlimited
Email: Unlimited
SQL Server 2008 R2
Monthly: $7.99
More Information About Unlimited ASP.NET Hosting Plan

Windows Hyper-V Server

Dedicated Memory:1GB
Disk Space: 100GB
Bandwidth: Unlimited
Windows 2008/2003: Free
Monthly: $29.99
More Information About Unlimited Windows Hyper-V Server

Dedicated .NET Server

CPU: Intel Core i3-2100 CPU
RAM: 8GB RAM
Disk: 2x320GB SATA
RAID: RAID 1
Bandwidth: Unlimited
Windows 2008/2003: Free
Monthly: $89.00
More Information About Unlimited Dedicated ASP.NET Server