_events is a null or not object error only when compiling debug = "false"

I have been creating and using the page in the development environment for a while, it is a search-oriented page that is heavy for ASP.NET AJAX controls. However, I recently tried moving this to production when I set the value in the Web.Config file:

<compilation debug="false">

By clicking on a page that will update the UpdatePanel or after AJAX feedback, you will receive a JavaScript error:

Message: '_events' is null or not an object
Line: 5
Char: 36005

However, as soon as I installed:

<compilation debug="true">

everything works fine again.

Does anyone have any advice on what I can check in my code that will be causing this error, and why does this mean that this debug = "false" parameter in the compilation parameter causes this?

, debug = "false" , , , , debug = "false" -, , ASP.Net/AJAX, .

: IE, Firefox .

!

+3
1

​​AjaxControlToolkit, . .

+1

Source: https://habr.com/ru/post/1768680/


All Articles