Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All
I wrote my website Internet Explorer 6 and have tried running it on an IE7 and IE browser but my site loses its alignment i have try all things which are given below but there is no improvment
Thanks
Please give me any idea .....
web conf.
XML
<system.webServer>
    <!-- For now..... lets be safe and put IE8 in IE7 compatibility mode-->
    <httpProtocol>
      <customHeaders>
        <clear />
        <add name="X-UA-Compatible" value="IE=EmulateIE7" />
      </customHeaders>
    </httpProtocol>
</system.webServer>

master pages
XML
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>

OnPreRender event
C#
Page.Header.Controls.AddAt(0, new HtmlMeta { HttpEquiv = "X-UA-Compatible", Content = "IE=EmulateIE7" });
Posted
Updated 4-Aug-11 18:42pm
v2

So if I am not wrong, what u mean is that your website is working fine in IE6 but not in IE7 & plus.

If so you should be trying this instead

HTML
<meta http-equiv="X-UA-Compatible" content="IE=6"></meta>


You can further explore about how to force compatibility here:
http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx[^]
 
Share this answer
 
i have also try this but there is no improvment

my meta tag is

XML
<meta http-equiv="X-UA-Compatible" content="IE=6"></meta>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>


thanks
 
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