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 How-Tos
Express Windows Server
CPU: Intel Core 2 Duo E8400
CPU Speed: 3.00GHz
Cache: 6MB
RAM: 2GB RAM
Disk: 2x320GB SATA
RAID: RAID 1
Bandwidth: 1000GB
Window Server 2008 or 2003: Free
IP Addresses: 8
Monthly: $149.00
Detail...
Standard Windows Server
CPU: Quad-Core Xeon E5410
CPU Speed: 2.33GHz
Cache: 12MB
RAM: 2GB RAM
Disk: 2x146GB SCSI
RAID: RAID 1
Bandwidth: 1500GB
Window Server 2008 or 2003: Free
IP Addresses: 8
Monthly: $259.00
Detail...
|