Popup extender “frozen” on code-behind exception

时光毁灭记忆、已成空白 提交于 2019-12-12 01:14:19

问题


In a C#/ASP.NET project, we're using an ajax modalpopupextender to display a "Processing..." message to the users. We're displaying it using a Javascript call in the code of the ASP.NET page. Then, in the code behind, we're doing some database operation, and hide again the popup using "popup.hide();"

The problem is that when an exception occurs in the code behind, the popup is still displayed and the application does not handle errors as per the "customErrors" tag of the web.config.

Any idea on how to deal with this kind of issues?

Thanks, David


回答1:


Can you wrap the code you are running in a try catch and make sure you call in the finally the popup.hide?



来源:https://stackoverflow.com/questions/1424536/popup-extender-frozen-on-code-behind-exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!