compatibility issue is IE10 - asp.net

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.

this works for me
<head runat="server">
<meta id="FirstCtrlID" runat="server" http-equiv="X-UA-Compatible" content="IE=8" />
</head>

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?

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.

Related

Asp.net site failing only in new IE version

I have a site in asp.net (Req. of the client, is actually an old code they had)
It is in IIS. It works in Chrome, Firefox, IE 10 and IE 11 version 11.0.9600.17690 but not working in IE version 11.0.9600.17691
In this version, the site is refreshing over and over and it doesnt load what it should be loading.
The HTML is formed like this
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=10,chrome=1" />
<meta charset="utf-8" />
I tried with IE edge too.
Is there a new configuration that i migth be missing?
If I run the site from VisualStudio directly or from firefox, chrome or other IE version, it works fine.

How do I prevent my wordpress site from automatically zooming in when using mobile devices?

I'm working on a website right now, it's tiniglesias.com ... and everytime I try to use my iphone to check it, it is automatically zooming in.
I've already deactivated all of my plugins to check if any of it is causing this to happen, but it is still zooming in.
I've also tried using the meta tag
<meta name="viewport" content="width=device-width" />
Still not working.
Help would be greatly appreciated.
Try:
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Update:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

I'm having some encoding issues with asp.net MVC 4 where certain characters like apostrophe appear as ’

I basically took a html file that someone made and made a new MVC app and put it into a view, but now I get issues with apostrophes and other characters appearing like, "he’s a cat".
I'm comparing opening the original html file on the disk in the browser, and running the MVC application which is in my local IIS. Same browser.
The HTML in the <head> section appears to be the same in both when I do view source:
<!DOCTYPE html>
<html class="no-js">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Cats</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/style.min.css">
</head>
I'm at somewhat of a loss. Any ideas?
Edit: In firefox, going to View > Encoding shows both pages are in UTF-8.
I've solved it, this is actually an issue with the way MVC was creating the HTML. I added the following to the web.config and it resolved the issue:
<globalization
fileEncoding="utf-8"
requestEncoding="utf-8"
responseEncoding="utf-8"
culture="en-US"
uiCulture="en-US"
/>
under <system.web>
That's the character output when a right-single-quote is sent in ISO-8859-1 rather than UTF-8. In the head you're specifying ISO-8859-1 encoding so this is being misinterpreted. Your options are to use the HTML encoded value ’ or, as you've seen yourself, change your encoding to UTF-8.

Asp.net,Menu control

Asp Menu control is not rendered as the way it has in IE 8 and IE 9.please help to fix this issue.It is padded with white space or the sub menus are not displayed properly sometimes.
compability mode error,
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
</head>

ASP.NET Compatibility mode in IE 9

I have on eproblem with IE Compatibility...
for example my site in Compatibility mode which is equivalent to IE 7 has broken...
a will show you 2 screen-shoots:
IE 9 (normal view) - http://screencast.com/t/ysNYN3RJh
IE 9 (Compatibility IE 7 view) - http://screencast.com/t/7X4lR5bNyDhs
in my site i have this meta - <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
but i think it doesn't work properly...
so, how can i fix this problem?
also i tried insert the code <httpProtocol>
<customHeaders>
<!-- IE7 COPABILITY -->
<clear />
<add name="X-UA-Compatible" value="IE=Edge" />
<!-- IE7 COPABILITY -->
</customHeaders>
</httpProtocol> in Web.config
but it also was ignored...
P.S sorry for bad English
Your question is horrifyingly unclear.
X-UA-Compatible doesn't disable compatibility mode; it just prevents it from defaulting to compatibility mode.
It looks like you need an HTML5 shiv for styling HTML5 elements in IE < 9.

Resources