这个错误是在“计算机学院摄影比赛网站”中遇到的。
加上一个button,在有updatepanel的页面内。出现了如下错误。。
53|error|500|Object reference not set to an instance of an object.|
uncaught exception: [Exception... "'Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: chrome://firebug/content/spy.js :: callPageHandler :: line 744" data: no]
错误分析:
是因为后台的代码写错了,出现了空的对象!!!