Monday, July 8, 2013

Making your aspx page IE compatible

We found that in some cases our site is showing some weird UI behavior, It was working fin

e when we are opening our site on clients local machine with
http://localhost but when we use the machine name instead of the local host like (http://machinename ) we are getting a broken UI page.
When we observer the page in IE developer tool (F12) we found that IE 10 is not able to understand the type of document and because of this we are getting the UI error.
To fix this problem we have just added a meta tag after title tag in our pages so that browser can detect correct Browser mode and document Mode
<meta http-equiv="X-UA-Compatible" content="IE=100" />