简体   繁体   English

asp.net/C# Web应用程序中的奇怪行为

[英]Weird behaviour in asp.net/C# web app

I've been trying to solve some UI issues I had on my website. 我一直在尝试解决网站上出现的一些UI问题。

I realized that my web app was moving textboxex, dropdownlists, etc.. when after I was putting values on them. 当我将价值放在上面时,我意识到我的Web应用程序正在移动textboxex,下拉列表等。 They passed from being on the left to be on the right side of the div, weird things like that. 他们从位于div的左侧转到右侧,像这样的怪异事物。

Well, this is the behaviour I saw when I was debugging or running from my VS2010. 好吧,这是我在从VS2010调试或运行时看到的行为。 Then I deployed the website and loaded into my server. 然后,我部署了网站并加载到服务器中。 ..And for my surprise, this behaviour was not happening. ..令我惊讶的是,这种行为并未发生。

Did anyone see this before? 有人看过吗? Why is this happening? 为什么会这样呢? What is the difference between debug the website, start it on the browser without debug or publish it? 调试网站,在没有调试的情况下在浏览器中启动或发布它有什么区别?

I would suggest that you try debugging under IIS Express instead of the VS development server. 我建议您尝试在IIS Express而不是VS开发服务器下进行调试。 Sometimes there are subtle differences between VS Dev Server and IIS, especially when you are dealing with things like session. 有时VS Dev Server和IIS之间存在细微的差异,尤其是在处理会话之类的事情时。

Problem was related to style issues. 问题与样式问题有关。 Tried with more specific styles, not letting them grow bigger than it should 尝试了更具体的样式,而不是让它们变大了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM