简体   繁体   English

边缘在重新加载时显示空白页面,并带有“#”符号

[英]Edge shows blank page with '#' symbol on reload

On Live Server page, using c#.net, on filling the form and clicking save, it saves and reloads the page. 在Live Server页面上,使用c#.net,填写表单并单击“保存”,它将保存并重新加载页面。 On Edge on reload, shows blank page containing only '#' symbol. 在重新加载的Edge上,显示仅包含'#'符号的空白页。 Not able to reproduce the issue on my local machine, making it harder to find the issue. 无法在我的本地计算机上重现该问题,因此很难找到该问题。 This issue does not occur on any other browser, not even on IE. 在任何其他浏览器上甚至在IE上都不会发生此问题。 I have the doctype declared <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 我的文档类型声明为<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

This is the console log before the page reloads: 这是页面重新加载之前的控制台日志:

HTML1300: Navigation occurred. HTML1300:发生导航。 BookingDetails.aspx (1,1) BookingDetails.aspx(1,1)

HTML1524: Invalid HTML5 DOCTYPE. HTML1524:无效的HTML5 DOCTYPE。 Consider using the interoperable form “!DOCTYPE html>”. 考虑使用可互操作的格式“!DOCTYPE html>”。 BookingDetails.aspx (3,1) BookingDetails.aspx(3,1)

HTML1114: Codepage utf-8 from (HTTP header) overrides conflicting codepage iso-8859-1 from (META tag) BookingDetails.aspx (1,1) HTML1114:来自(HTTP标头)的代码页utf-8覆盖了来自(META标记)BookingDetails.aspx(1,1)的冲突代码页iso-8859-1

This is the console log when the page goes blank: 页面为空白时,这是控制台日志:

HTML1300: Navigation occurred. HTML1300:发生导航。 BookingDetails.aspx (1,1) BookingDetails.aspx(1,1)

HTML1405: Invalid character: U+0000 NULL. HTML1405:无效字符:U + 0000 NULL。 Null characters should not be used. 不应使用空字符。 BookingDetails.aspx (1,2) BookingDetails.aspx(1,2)

HTML1527: DOCTYPE expected. HTML1527:预计为DOCTYPE。 Consider adding a valid HTML5 doctype: “!DOCTYPE html>”. 考虑添加有效的HTML5文档类型:“!DOCTYPE html>”。 BookingDetails.aspx (1,2) BookingDetails.aspx(1,2)

HTML1507: Unexpected character: U+0000 NULL. HTML1507:意外字符:U + 0000 NULL。 Null characters should not be used. 不应使用空字符。 BookingDetails.aspx (1,2) BookingDetails.aspx(1,2)

Edit: The issue seems to be happening with a asp:HiddenField and html input fields. 编辑:问题似乎正在发生与asp:HiddenField和html输入字段。 When the value contains a style and round brackets (only happen with the open round bracket) The text with which i was able to reproduce the issue was "( 当值包含样式和圆括号时(仅在圆括号中发生),我能够重现该问题的文本为“(

"

You should consider changing to xhtml5 and then validating at validator.w3.org . 您应该考虑更改为xhtml5 ,然后在xhtml5进行验证 Make sure you don't add anything after </html> tag. 确保在</html>标记后没有添加任何内容。 Not even a new line. 甚至没有换行。 Also make sure you don't have two or more adjacent hyphens inside comments. 另外,请确保注释中没有两个或多个相邻的连字符。

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

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