开发者

Error Page For Ajax Enabled Page asp.net

i have a page with update panel. if any error occurs then page does not display开发者_Go百科 any information regarding error. How to display error page.

Thank you Mohan Sharma


Here's a good article by scottgu on how to do this.

1) You can now handle the "OnAsyncPostBackError" event on the control to catch and/or modify an error message that occurs during the processing of an AJAX postback callback on the server.

2) You can now set the "AllowCustomErrors" property on the control to enable the standard ASP.NET custom error support to be enabled to redirect a user automatically to an error page when an error occurs (even if it is happening during an AJAX postback).

3) You can now optionally handle client-side JavaScript events on the page to intercept any error message sent back from the server, and perform custom client-side actions as a result (for example: to output the error message to a nicely formatted section instead of performing a pop-up message).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜