Sunday, March 11, 2012

debug="false" in web.config breaks AJAX?

No ideas off the top of my head. Any chance you could share your code with us?


It's very weird - I have a custom class derived from Sys.Component and I figured out that basically get_events() is not available when debug="false" in web.config. I created a method of my own called get_myEvents which returns an EventHandlerList and it works fine.

It does say in the AJAX client documentation that get_events() is for the AJAX infrastructure and not intended to be called by our code, so maybe they've knobbled it somehow in release build on purpose?


Does anyone out there use get_events() in their Sys.Component derived classes? Or do you roll your own event handlers.

No comments:

Post a Comment