Wednesday, December 28, 2022

Script manager OnAsyncPostBackError ASP.NET C# - Error handling in Scriptmanager

 If you are not using scriptmanager in master page, and try and catch is not used in the page,

than you can use OnAsyncPostBackError event in Webpage.

if you are using scriptmanger in webpage without master pager, than you can easily use OnAsyncPostBackError , but you don't have to use try and catch


<asp:ScriptManager runat="server" ID="ScriptManager" 

EnablePartialRendering="true" OnAsyncPostBackError="OnAsyncPostBackError">

  </asp:ScriptManager>


references:- http://etutorials.org/Programming/aspnet+ajax/Chapter+5+Using+the+ScriptManager/Error+Handling/

https://stackoverflow.com/questions/5944481/error-handling-in-updatepanel-with-customerrors-mode-on

https://www.oreilly.com/library/view/aspnet-ajax-updatepanel/0596527470/ar01s06.html

No comments:

Post a Comment