Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Dear All,

I am encountering with very weird issue for Last few days. I’ve developed on Web Site in ASP.net using VS2010 and hosted it on one Window 2003 server (IIS 6.0).
My website is simple data driven application and renders some controls based the Data in background using AJAX (nothing fancy about it).

Now my issue is that when I access my website by using IP (like http://xx.xxx.xx.xx/Mysite/default.aspx), it works fine and render all the controls with perfect UI and CSS.
But when I access the same website using server name (like http://SERVERNAME/Mysite/default.aspx) then the page UI get distorted and doesn’t render the controls correctly.

I tried to compare the rendered HTML in bath cases but could not find any difference. I thought there might be some difference in control rendering mechanism so I did some tweaking in my code too, but still no luck.

Can anyone please help me to provide some lead to sort this out?
Posted

I give you a tip that i usually take .

1.use firefox browser and download firebug .you will find where the problem is ?
2.IE 7+,press f12

I guess that your url don't match your resources .
 
Share this answer
 
Comments
[no name] 25-Jul-13 23:25pm    
Thanks Chui..

Forgot to mention that my application works fine on CROME, Firefox. The issue is only on IE browser. I tested it on IE 6,8,9
Chui PuiKwan 26-Jul-13 1:51am    
it's no problem .
if you can paste some code ,I can answer more details .
[no name] 29-Jul-13 3:47am    
Thanks Chui...

But I cannot share the code. Though I scanned all my code and now using minimum CSS and Javascript. Now I fixed some of the problems, but the main problem still persist :(
Hi All,


I found the solution.

Adding this to your <head> will solve the issue:

<meta http-equiv="X-UA-Compatible" content="IE=edge"></meta>
 
Share this answer
 
v2

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