当部署ASP.NET网站看起来不同 [英] ASP.NET website looks different when deployed

查看:197
本文介绍了当部署ASP.NET网站看起来不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Google搜索周围的回答这个问题,但没有拿出任何东西。也许我使用的搜索条件太一般...无论如何,这里有云:

I have googled around for the answer to this question, but haven't come up with anything. Maybe the search terms I used were too generic... Anyway, here goes:

我发现网页设计和ASP.NET,并试图让事情在IE浏览器同样的方式和所有其他浏览器中显示噩梦的乐趣。
我在VS2010的工作和使用IE8的调试我的网站。我真的不明白就是为什么网站一旦我出版它在IE看起来不同,它会在调试模式下的方式......我只意味​​着小东西,就像在GridView的在发布现场消失,简单的HTML水平规则边界是不一样的任一。

I am discovering the joys of web design and ASP.NET, and the nightmare of trying to get things to display in the same way in IE and all the other browsers. I am working in VS2010 and debugging my website using IE8. What I really don't get is why the website once I publish it looks different in IE from the way it looks in debug mode... I mean small things only, like border in gridviews disappearing in the published site, simple html horizontal rules aren't the same either.

这也搞砸了我的列表菜单pretty不好,但我设法解决,与*显示:内联;黑客攻击。奇怪的是,它并不需要在调试模式下,但需要它的出版网站。

It also messed up my list menu pretty bad, but I managed to fix that with the *display: inline; hack. The weird thing is that it doesn't need it in debug mode, but needs it for the published website.

我主持我自己的机器上的网站,运行Win XP的专业版,并通过IIS与.NET 4.0托管...请问问题是相关的IIS?

I am hosting the site on my own machine, running Win XP Pro and hosting through IIS with .NET 4.0... Could the issue be IIS related?

任何帮助将是非常美联社preciated,因为这些差异只是荒谬和快把我绝望。祝大家在这里会使用Chrome或Safari浏览器,但不幸的是IE浏览器在日本仍然规则...

Any help would be much appreciated, because those differences are just ridiculous and are driving me to desperation. I wish everyone over here would use Chrome or Safari, but unfortunately IE still rules in Japan...

推荐答案

我已经看到了相关的受信任的站点/ Intranet站点/ Internet站点的安全设置类似的行为。当您在调试模式下运行是您正在使用不同的从您发布的URL?我有时可见,当我调试使用URL如的http://本地主机/ XXX ,当我从IIS访问直同一站点使用URL如 http://machinename.domain.com/xxx 一个解析到受信任的站点或本地Intranet和其他互联网和它改变了基于IE设置的外观。

I've seen similar behavior related to trusted sites/intranet sites/internet sites security settings. When you run in debug mode is the URL you are using different from when you publish it? I've seen sometimes when I debug using a URL like http://localhost/xxx and when I access the same site straight from IIS using a URL like http://machinename.domain.com/xxx that one resolves to a trusted site or local intranet and the other to internet and it changes the appearance based on the IE settings.

这篇关于当部署ASP.NET网站看起来不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆