ASP.NET Menu Compatibility with IE8
It seems to be very common that asp.net menu control is not to be properly displayed in IE8.
I have developed a website which contains a master page and placed a menucontrol in master page.
While running the project the menu is displaying in the content page,but the submenus are not
visible and a compatibility button will be displayed in IE.While turning IE8 to compatibility mode it displays the sub menu too.
But it is not a right thing because the user may not be aware of this and
he will say that the menu is not working in his browser.
This can be solved by adding the below code in the head tag of the master page.
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
<title>
</title>
</head>
Now the menu will work fine it will display all the submenus and will navigate to the pages as required.
Revision number 1, Tuesday, March 09, 2010 6:44:09 PM by sajithms85
This is not the most up to date version of this article. The most recent version can be found here.
You must Login to comment.
|
Wed, Nov 10, 2010 12:36 AM
by ziazai123
|
If user have IE6 then what to do? Should I do this: meta http-equiv="X-UA-Compatible" content="IE=EmulateIE6" > or add both lines of codes if user have IE6 or IE7?
|
|
Fri, May 13, 2011 2:06 AM
by yrb.yogi
|
Great work. But what about the browser version compatibility. I have changed my browser to IE9 from IE7.
One of my website menu is not generated in IE9. whenever I have click on compatibility View on IE9 website menu is working fine. Same issue with Firefox latest version. Not checked with other browser. Now I thought above article will help me to solve my problem.
|
|
Wed, May 25, 2011 4:21 AM
by matifnadeem
|
My problem not solved after using this meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" > As my menu bar not working in IE-8
|
Revision #2
Fri, Aug 5, 2011 9:07 AM
by
|
Rendering of dynamic items of Asp Menu control
Asp Menu controls lacks to render its items which are set with dynamic visibility in Internet Explorer 8. Microsoft has also confirmed at Microsoft Support that this particular issue resides in some of their products [1]. After a systematic testing Microsoft
|