How to simulate or trigger a AsyncPostBackError in ASP.NET

479 views Asked by At

I have implemented the handling of the AsyncPostBackError. Now I want to test it.

How do simulate a AsyncPostBackError event?

1

There are 1 answers

0
Forgotten Semicolon On

You could simply throw an exception in the serverside method that is being called async. That should raise your handling of the AsyncPostBackError.