Loading

ASP.NET 2.0 – ValidatorOnLoad “Microsoft Javascript runtime error: ‘null’ is null or not an object”

当在aspx页面中使用html注释块"<!---->"时,出现js错误:"undefined".

解决方案:

1, 使用"<%----%>"代替"<!---->"

2, 干脆去掉注释块

参考:http://community.sgdotnet.org/blogs/chuawenching/archive/2007/05/14/ASP.NET-2.0-_1320_-ValidatorOnLoad-_1C20_Microsoft-Javascript-runtime-error_3A00_-_1820_null_1920_-is-null-or-not-an-object_1D20_.aspx

posted @ 2010-08-26 15:25  .net's  阅读(619)  评论(0)    收藏  举报