Answered by:
Different alignments when hosted on IIS and development in ASP.Net server

Question
-
User-953162784 posted
Hi,
I am working on a website for our company. When we are developing web pages in asp.net and aligning controls, they are behaving differently when developing and after hosting.
What is the difference between development website and hosted website? Please suggest a solution
Thanks in advance,
Surya
Friday, April 12, 2013 3:32 AM
Answers
-
User-953162784 posted
This issue is fixed by adding name "X-UA-Compatible" and value as "IE=8,9,10" in web.config as follows:
<configuration><system.webServer>
<httpProtocol>
<customHeaders>
<clear />
<add name="X-UA-Compatible" value="IE=8,9,10" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>I have found this at http://msdn.microsoft.com/en-us/library/jj676915%28v=vs.85%29.aspx.
Thanks for all your replies!!!
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, April 17, 2013 12:14 AM
All replies
-
User-1360095595 posted
If you're using stylesheets make sure they're making it to your deployed server.
Friday, April 12, 2013 3:41 AM -
User1291589676 posted
Check whether you iss configured with static content enabled or not. Your stylesheets and images are treaded as static contents as per IIS. If not enabled goto Windows features and enable static contents.
Friday, April 12, 2013 3:49 AM -
User1985864055 posted
See Resolving References to Root-Level Resources in http://msdn.microsoft.com/en-us/library/58wxa9w5.aspx
There's a chance that this is what's causing the difference between running in VS and under IIS.
Tuesday, April 16, 2013 7:06 PM -
User-953162784 posted
This issue is fixed by adding name "X-UA-Compatible" and value as "IE=8,9,10" in web.config as follows:
<configuration><system.webServer>
<httpProtocol>
<customHeaders>
<clear />
<add name="X-UA-Compatible" value="IE=8,9,10" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>I have found this at http://msdn.microsoft.com/en-us/library/jj676915%28v=vs.85%29.aspx.
Thanks for all your replies!!!
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, April 17, 2013 12:14 AM