May 11, 2011, 10:16 AM
[CLOSED] Global Exception Handling How to?
Hi,
I would like to know how to redirect unhandled errors from ext.net to a custom error page.
Our current ASP.NET error handling Implementation:
Currenlty we are using custom error handling in ASP.Net using "Page_Error" event. We have a BasePage class that is derived from "Page" class and then we are handling "Page_Error" event in this class.Any errors from any page will be redirected to our custom error page.
1. How to handle exceptions that raise from Ext.net and then redirect them to custom error page?
For Example: We have a code like this:
will fetch the data from a webservice.Since I am handling the "Load" handler. I am getting java script error's like.
"Microsoft JScript runtime error: 'cboTemplate.store.getAt(...)' is null or not an object". Show how to handle such type of errors.
So, how to handle this type of errors.
2. How to disable Ext.net exception diablogs like "Communication Failure" etc. Instead we want to redirect to a custom error page. how do we do that?
3. Are their any samples that show to handle errors in ext.net?
Note: We are using the Ext.net RC 1.0 (1.0.4093.32349).
Regards,
Manoj
I would like to know how to redirect unhandled errors from ext.net to a custom error page.
Our current ASP.NET error handling Implementation:
Currenlty we are using custom error handling in ASP.Net using "Page_Error" event. We have a BasePage class that is derived from "Page" class and then we are handling "Page_Error" event in this class.Any errors from any page will be redirected to our custom error page.
1. How to handle exceptions that raise from Ext.net and then redirect them to custom error page?
For Example: We have a code like this:
<ext:Store runat="server" ID="TemplatesStore" AutoLoad="false" OnRefreshData="GetTemplates" ShowWarningOnFailure="true" >
<Reader>
<ext:JsonReader IDProperty="Id">
<Fields>
<ext:RecordField Name="Id" />
<ext:RecordField Name="Template" />
</Fields>
</ext:JsonReader>
</Reader>
<Listeners>
<Load Handler="#{cboTemplate}.setValue(#{cboTemplate}.store.getAt(0).get('Template'));" />
</Listeners>
</ext:Store>
This store is attached to a combobox. When a value is selected from another combobox this store will get executed and will fetch the data from a webservice.Since I am handling the "Load" handler. I am getting java script error's like.
"Microsoft JScript runtime error: 'cboTemplate.store.getAt(...)' is null or not an object". Show how to handle such type of errors.
So, how to handle this type of errors.
2. How to disable Ext.net exception diablogs like "Communication Failure" etc. Instead we want to redirect to a custom error page. how do we do that?
3. Are their any samples that show to handle errors in ext.net?
Note: We are using the Ext.net RC 1.0 (1.0.4093.32349).
Regards,
Manoj
Last edited by Daniil; May 17, 2011 at 1:57 PM.
Reason: [CLOSED]