Wednesday, June 2, 2010

ASP.Net menu Hack for Google Chrome

ASP.Net menu controls breaks in Google Chrome and works fine in other browsers. Here is the hack to make it work in Google Chrome as well,



if (Request.UserAgent.IndexOf("AppleWebKit") > 0)
Request.Browser.Adapters.Clear();


Just add this code on your page load and the menu control will start working fine in Google Chrome as well.
Also some times the hover menus don’t work on IE8 to make it work on IE8 you need to set
“z-index”