[CLOSED] How to prevent poping the error window

  1. #1

    [CLOSED] How to prevent poping the error window

    When requesting overtime or other errors , the website would pop a error window, including status code and status text, as follows.

    Click image for larger version. 

Name:	截图00.png 
Views:	28 
Size:	77.2 KB 
ID:	6887


    How to prevent poping this window?
    I have logged the error, I did not need the error window.
    Last edited by Daniil; Sep 17, 2013 at 5:55 AM. Reason: [CLOSED]
  2. #2
    Hi @wangyi,

    Please return false from a ResourceManager's AjaxRequestException listener to prevent a failure window from appearing.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        protected void ThrowException(object sender, DirectEventArgs e)
        {
            throw new Exception();
        }
    </script>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server">
                <Listeners>
                    <AjaxRequestException Handler="return false;" />
                </Listeners>
            </ext:ResourceManager>
    
            <ext:Button runat="server" Text="Throw Exception" OnDirectClick="ThrowException" />
        </form>
    </body>
    </html>

Similar Threads

  1. [CLOSED] Prevent dissapears window title bar
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 14, 2012, 9:04 PM
  2. Replies: 2
    Last Post: May 08, 2012, 3:34 PM
  3. Replies: 1
    Last Post: Mar 14, 2011, 4:20 PM
  4. Replies: 1
    Last Post: Mar 11, 2011, 10:07 PM
  5. Replies: 2
    Last Post: Jul 29, 2009, 1:57 PM

Tags for this Thread

Posting Permissions