This problem i have faced while developing a page where i had to generate a dynamic MENU ,comprising of data coming from two different tables that were accumulated by establishing a RELATION between them from their datasets. Now ,all it was displaying was a WHITE background for the Sub-Menus in IE8 , Google Chrome and Safari .
So , to overcome this issue, we need to add a ClientTarget property in our pages. But what exactly does ClientTarget property do ? and the answer is "It Gets or sets a value that allows you to override automatic detection of browser capabilities and to specify how a page is rendered for particular browser clients."
It goes like this ,
<% @ Page Language="C#" AutoEventWireup="true" ClientTarget="uplevel" %>
In the Code-Behind Page, write this
Menu1.DynamicMenuStyle.CssClass = "DynamicMenuZIndex"; // Menu1 is the name of the MENU
StyleSheet.css
.DynamicMenuZIndex
{
z-index: 999;
}
After adding this , run the application and see the result..
Hope this helps..
Please do spare some time to write some comment regarding this post.
e106b521-3140-4e74-9973-220d29d19de9|1|5.0
Tags:
ie8,
google chrome,
safari,
dynamicmenu,
client target,
property,
menu
Categories:
Browser