开发者

How to simulate or trigger a AsyncPostBackError in ASP.NET

开发者 https://www.devze.com 2023-02-14 14:55 出处:网络
I have implemented the handling of the AsyncPostBackError.N开发者_开发技巧ow I want to test it.

I have implemented the handling of the AsyncPostBackError. N开发者_开发技巧ow I want to test it.

How do simulate a AsyncPostBackError event?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消