简体   繁体   English

在IE6,IE7和IE8中呈现的ASP.NET Server标签

[英]ASP.NET Server tags being rendered in IE6, IE7 and IE8

I've got a weird issue where the ASP.NET closing server tags are being rendered on the page and I'm not able to figure what is causing this issue. 我遇到了一个奇怪的问题,其中ASP.NET关闭服务器标签正在页面上呈现,但我无法弄清楚是什么导致了此问题。 There is nothing in between the body and the first div, which has an id="Page". 正文和第一个div之间没有任何内容,该id为id =“ Page”。 There is no issue in other browsers. 在其他浏览器中没有问题。 Do you have any ideas? 你有什么想法?

This is the code behind and what gets rendered in IE6, notice the server tags, right before the intial div. 这是背后的代码以及在IE6中呈现的内容,请注意服务器标签,就在初始div之前。

IE 6 http://i.stack.imgur.com/FkIZ2.png http://i.stack.imgur.com/FkIZ2.png

IE8 same issue, different place, and there is also a snapshot from inspecting the elements which confirms the place of the server tags (though that control uses another master page, that has a simillar structure - see code below). IE8的问题相同,位置不同,并且从检查元素的快照中也可以看到快照,以确认服务器标签的位置(尽管该控件使用另一个具有相似结构的母版页,请参见下面的代码)。

IE 8 http://i.stack.imgur.com/WqjB6.png http://i.stack.imgur.com/WqjB6.png

Any ideas are good, cos at the moment I don't know what else to try. 任何想法都很好,因为目前我不知道还能尝试什么。 :) Thank you in advance! :) 先感谢您!

You missed the final delimiter of the href in the lt IE 9 <link> . 您错过了lt IE 9 <link> href的最终定界符。

Just add the delimiter and everythings should work fine. 只需添加定界符,一切应正常工作。

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

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