Reputation: 4915
When you click on an Asp.Net menu in Chrome, the submenu items are not displayed and the aspnet menu disappears.
Anyone have an easy way to get this to work? Is it a z-order issue?
Upvotes: 0
Views: 223
Reputation: 4915
To fix the problem of the asp.net menu disappearing when trying to click a submenu item in Chrome and Safari browsers:
Add the following code to Page_Load :
protected void Page_Load(object sender, EventArgs e)
{
if (Request.UserAgent.IndexOf("AppleWebKit") > 0 )
{
Request.Browser.Adapters.Clear();
}
}
Upvotes: 1