开发者

Visual Studio weirdness

开发者 https://www.devze.com 2022-12-11 23:19 出处:网络
I have no one else to count unless this fantastic community, I know this is a non-programmer question but I can\'t figure it out why this is happening.

I have no one else to count unless this fantastic community, I know this is a non-programmer question but I can't figure it out why this is happening.

To a client I developed, using 960.GS a layout with a simple login user page / choose product / register products using .NET (ASP.NET 3.5) and all was ok, they agreed and I started ...

I then imported the HTML files I did and started to replace input with asp:TextBox's and the button into开发者_如何学Python an asp:Button, really simple/basic stuff, but soon I click "View in Browser" I got my code all scrambled!

even if I see a XHTML 1.1 Strict Validated code, and CSS 2.1 Validate code

to try to get what's wrong, I put the ASPX file aside and open only the HTML page.

results are very different:

Opening directly in Firefox, with no web server:

alt text http://www.balexandre.com/temp/2009-11-22_1116.png

if I run the same page (exactly the same code) [HTML page, no ASP.NET page] through Cassini (Visual Studio Web Server) it shows .. ohh well...

alt text http://www.balexandre.com/temp/2009-11-22_1117.png

as well if I run that html page from IIS 7.5

alt text http://www.balexandre.com/temp/2009-11-22_1129.png

all 3 files above are the same page, being run through 2 different servers Cassini, IIS and the normal HTML render from Firefox.

using Firebug, all css loads well

screen cast: http://bit.ly/7ZBkuh (20 sec)

Does anyone have any idea for this behavior?

All help will be greatly appreciated, Thank you.


This looks like a css overflow problem. Are there any differences between the resultant markup/css from the browser (not the source file in the url bar) - eg, by comparing the "View page source" result? I suspect there will be. And i suspect that it's css related not markup.


It might help to run a diffing tool against your original HTML file and the output produced by your ASPX page. It will definitely be expected to see some differences, but it might still help you highlight what's going wrong.


This is only a guess, but perhaps the CSS styles that you are seeing in the ASP.NET-hosted pages are defined in the page, and the CSS styles that you are not seeing are defined in a separate CSS file?

If that is indeed the case, then the problem could be due to the way you have configured ASP.NET authentication in web.config. It may be serving up the HTML file but blocking the CSS file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号