AJAX panel does not throw exceptions

I just noticed something weird in some asp.net markup.

I have a standard form with multiple text fields and a submit button.

Clicking on the code behind will try to execute some logic and then return.

If the input values ​​are not valid, it used an exception.

The moment I wrapped the controls in the AJAX refresh bar and tried to send bad data, no exception would be thrown and the bar returned as if nothing had happened.

Does anyone know how to revert this to the previous behavior while keeping the refresh bar?

+2


a source to share


1 answer


The expression it fetched , but its an ajax handle, and now there are Javascript errors because now the full page is not loaded, but an error is returned back from the javascript ajax call.

To see them, just open the javascript error console :), however you need the expression, as Raj says, you need to find another way to show your errors.



When I won to do some tests and find my error, I remove the Ajax panel for this reason, find the error, fix it, then put the Ajax panel back

+2


a source







All Articles