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

转载于:https://www.cnblogs.com/joe-yang/archive/2010/08/26/1809139.html

你可能感兴趣的:(ASP.NET 2.0 – ValidatorOnLoad “Microsoft Javascript runtime error: ‘null’ is null or not an object”...)