5
votes

I have an asp.net website that looks good, as it should, on IE8,IE9 as well as the latest versions of Firefox and Chrome.

the server click is working fine in all web browsers.. in IE10 it's not working..when Clicking IE10's "Compatibility button" its work fine..

but I can't tell all users to turn on compatibility button and browse.

I want to do dis in coding side.. I have tried <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >

and

<system.webServer>
    <httpProtocol>
        <customHeaders>
            <clear />
            <add name="X-UA-Compatible" value="IE=EmulateIE7" />
        </customHeaders>
    </httpProtocol>
</system.webServer>

and this also

try dis also

I've tried overriding the compatibility mode, to no avail:

but it's not working in IE10.

3
Clicking the compatibility button does more than merely using a different renderer. It also affects the request that gets sent to the web server, and the web server may return different data as a result of that. Can you verify that the HTML that gets sent to IE9 and IE10 is exactly the same? - user743382
Then you'll need to make sure the correct HTML gets sent to IE10 too. Only if it then still doesn't render as intended might X-UA-Compatible help. - user743382
tats what i am searching which html code have to send IE10? - user960439
... You just said you weren't sending the same HTML as for IE9 and earlier. Send the same HTML that you send IE9, see how IE10 behaves then, and only after that look at whether you need to add X-UA-Compatible. - user743382
in ie9 its working fine without X-UA-Compatible but in ie10 its not working... - user960439

3 Answers

0
votes

this works for me

<head runat="server">
<meta id="FirstCtrlID" runat="server" http-equiv="X-UA-Compatible" content="IE=8" />
</head>
0
votes

Try

<meta http-equiv="X-UA-Compatible" content="IE=edge">

IE compatibility meta tags have been described in detail by this answer in the answer to the following question What does <meta http-equiv="X-UA-Compatible" content="IE=edge"> do?

0
votes

Just try this

<meta http-equiv="X-UA-Compatible" content="IE=8, IE=9, IE=10, IE=Edge" />

here IE=Edge is to mean highest compatibility. but for your problem IE=10 will be the fix.