locked
Edge Browser cause error on UpdatePanel RRS feed

  • Question

  • User611663283 posted

    Hello,

    i run on .NET 3.5 and my page work on FF IE11 and so on but when I try to run the Page on Edge Browser it fail.

    In my page I have an UpdatePanel. If I remove it the page run correctly.

    If I run the page with UpdatePanel a Javascript error is show:

    SCRIPT5022: Sys.ScriptLoadFailedException: Impossibile caricare lo script 'http://localhost:54444/UlisseProgetto/ScriptResource.axd?d=q63TdaLP6RCZ3oTwbvKhYNSx_4O6ws5t3p-0nKADv2Q5xwxAOBHOl8iI3p2ZkCGyshRAvmmJ1XZAeEGQ35ejtiVmUv0NLCEzk62XV4LX-siCSq3rGzPzGZnS9x_kUyPIRp17yIPoYsOgXIpPCzLhtVfBdEMbZGqVPT2aWHp-WmxKtsGh0&t=5f915bbd'.
    
    SCRIPT5007: Unable to get property '_notified' of undefined or null reference

    How can I fix?

    Thursday, November 9, 2017 3:26 PM

All replies

  • User-1716951449 posted

    can u run this properly over other browsers? like chrome?

    test with few more "popular" browser

    if the problem is unique to edge, lodge a bug report at their official site

    and consider to op-out support edge

    Friday, November 10, 2017 3:14 AM
  • User-1838255255 posted

    Hi Pier Giordano,

    According to your description and error, as far as I know, this issue maybe caused by the JS does not load successfully. For more details, please check the following link:

    Sys.ScriptLoadFailedException:

    https://msdn.microsoft.com/en-us/library/bb397451.aspx?f=255&MSPPError=-2147217396

    Here is a tutorial about how to Debugging and Tracing Ajax Applications, please check:

    https://msdn.microsoft.com/en-us/library/bb398817.aspx?f=255&MSPPError=-2147217396

    Best Regards,

    Eric Du

    Friday, November 10, 2017 6:04 AM
  • User611663283 posted

    Works with:

    Firefox 56.0.2

    Internet Explorer 11.674.15063.0

    Not work with:

    Edge 40.15063.674.0

    Chrome 62.0.3202.89

    The problem is simple to detect:

    Insert an update panel and inside this a formView.

    In formView prerender listener insert this line of code:

    ScriptManager.RegisterStartupScript(Me.Page, Me.GetType, "keytry", "alert('hello');", True)

    It show a message but only for the refresh of page and not for postback. How can i solve this issue?

    Friday, November 10, 2017 8:22 AM
  • User-1716951449 posted

    try registerclientscript

    Monday, November 13, 2017 6:32 AM
  • User-1838255255 posted

    Hi Pier Giordano,

    According to your description, I reproduce your issue with my sample code, then I tested it in my side(Edge 40.15063.674.0), it works when refresh page and do postback. Please check:  

    Sample Code:

    <asp:FormView ID="FormView1" runat="server">
                <ItemTemplate>
                    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>ID:
                                    </td>
                                    <td>
                                        <%# Eval("Id") %>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Name:
                                    </td>
                                    <td>
                                        <%# Eval("Name") %>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Description:
                                    </td>
                                    <td>
                                        <%# Eval("Description") %>
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ItemTemplate>
            </asp:FormView>
    <asp:Button ID="Button1" runat="server" Text="PostBack" />
    
    protected void Page_PreRender(object sender, EventArgs e)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "keytry", "alert('hello');", true);
    
            }
            protected void Page_Load(object sender, EventArgs e)
            {
                if (!IsPostBack)
                {
                    DataTable dt = new DataTable();
                    dt.Columns.AddRange(new DataColumn[3] { new DataColumn("Id", typeof(int)), new DataColumn("Name", typeof(string)), new DataColumn("Description", typeof(string)) });
                    dt.Rows.Add(1, "John Hammond", "Works as a scientist in USA.");
                    FormView1.DataSource = dt;
                    FormView1.DataBind();
                }
            }

    Result:

    Please modify your code through my sample code! 

    Best Regards,

    Eric Du 

    Tuesday, November 14, 2017 11:05 AM
  • User611663283 posted

    Your configuration is not my configuration.

    I have a configuration like this:

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    	<ContentTemplate>
    		<asp:FormView ID="FormView1" runat="server">
    		    <ItemTemplate>
    		        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    		        <table border="0" cellpadding="0" cellspacing="0">
    		            <tr>
    			            <td>ID:
    			            </td>
    			            <td>
    			                <%# Eval("Id") %>
    			            </td>
                        </tr>
                        <tr>
                            <td>Name:
                            </td>
                            <td>
                                <%# Eval("Name") %>
                            </td>
                        </tr>
                        <tr>
                            <td>Description:
                            </td>
                            <td>
                                <%# Eval("Description") %>
                            </td>
                        </tr>
                    </table>
    		    </ItemTemplate>
    		    <%--<EditItemTemplate> I have also an editItemTemplate but you can try to start with this configuration
    		    to check if a error is raised.
    		    </EditItemTemplate>--%>
    		</asp:FormView>
        </ContentTemplate>
    </asp:UpdatePanel>
    

    If my configuration is wrong please tell me and I fix.

    Wednesday, November 15, 2017 8:49 AM
  • User-1838255255 posted

    Hi Pier Giordano,

    You need put the scriptmanager element before updatepanel element, i make a modify based on your code, it works. Please check the following sample code:

    Sample Code:

    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:FormView ID="FormView1" runat="server">
                            <ItemTemplate>
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>ID:
                                        </td>
                                        <td>
                                            <%# Eval("Id") %>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Name:
                                        </td>
                                        <td>
                                            <%# Eval("Name") %>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Description:
                                        </td>
                                        <td>
                                            <%# Eval("Description") %>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:FormView>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <asp:Button ID="Button1" runat="server" Text="PostBack" />
    
    protected void Page_PreRender(object sender, EventArgs e)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "keytry", "alert('hello');", true);
    
            }
            protected void Page_Load(object sender, EventArgs e)
            {
                if (!IsPostBack)
                {
                    DataTable dt = new DataTable();
                    dt.Columns.AddRange(new DataColumn[3] { new DataColumn("Id", typeof(int)), new DataColumn("Name", typeof(string)), new DataColumn("Description", typeof(string)) });
                    dt.Rows.Add(1, "John Hammond", "Works as a scientist in USA.");
                    FormView1.DataSource = dt;
                    FormView1.DataBind();
                }
            }

    Best Regards,

    Eric Du 

    Wednesday, November 15, 2017 11:29 AM