Click here to Skip to main content
15,892,797 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi
In my application i am using asp.net menu control, but i am facing small problem with this control, which is when i am placing the mouse on the menu control i am not getting the sub menu popups. At that i am written the following code on the master page for that i am getting some other problem which is.


in my local system internet explorer version 7, when i am running my asp.net local application i am getting the menus but the same application hosted on the some hosting server and try to access the application from the same i.e 7 i am not getting the sub menus popup

in another system i am using i.e8, here the problem is reverse,

when i am running the application locally i am not getting the sub menus popup, but in the same system with the same i.e8 browser i am trying to access the application which is hosted in a hosting server i am getting the sub menus popup

here i am writing the code which i used in master page to getting menus in i.e

protected void Page_Init(object sender, EventArgs e)
        {
          
            //The Following Code is required to make sure Menu is displayed properly in any browser.
            if (Request.ServerVariables["http_user_agent"].IndexOf("Safari", StringComparison.CurrentCultureIgnoreCase) != -1)
            {               
                Request.Browser.Adapters.Clear();
            }
       
      
        }

and i am also have one more issue with browser which is for the menu we applied style which is border for the main menu items but it is working on the internet explorer but it is not working in the Mozilla fire fox

for this is issue i am send a screen shot attaching to it post
if any body familiar with these issues please send the necessary solution for this. and if you have any links please forward me
Thanks& Regards
v.s.r.k.raju

because it is not implemented completely but in the current link "invoicing" main menu have the invoice archieved
Posted
Updated 20-Feb-10 4:59am
v3

After adding this one it's work for all browsers
if (Request.UserAgent.IndexOf("AppleWebKit") > 0)
{
Request.Browser.Adapters.Clear();
}

for IE8...
Add css Proferty in StyleSheet
.IE8Fix
{
    z-index: 1000;
}

and add the css property as follows...
<asp:Menu runat="server" >
  <DynamicMenuStyle CssClass="IE8Fix" />
</asp:Menu>
 
Share this answer
 
Hi there,
Try using the browser in compatibility view.
Note this is for Internet Explorer only.
To view it in compatibility go to Tools-> compatibility View.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900