Bug in Page_AjaxLoadComplete(object sender, EventArgs e)

  1. #1

    Bug in Page_AjaxLoadComplete(object sender, EventArgs e)

    Hi guys,

    I think I have found a bug in Coolite ScriptManager.


    Sometimes, on a AjaxEvent, I have a nullReferenceException in Page_AjaxLoadComplete(object sender, EventArgs e).


    By placing Log lines into your source code, I found the line where program fails.


        XmlNode eventArgumentNode = this.SubmitConfig.SelectSingleNode("config/__EVENTARGUMENT");
    I think the nullReference is caused by SubmitConfig to null.
    In my aspx page, I have
    <%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs"
        Inherits="Example.Web.Manage" EnableViewState="false" %>
    
    <ext:ScriptManager runat="server" ID="ScriptManager1" StateProvider="None">
        </ext:ScriptManager>
    I figure this error occurs when
    if (Ext.IsAjaxRequest &amp;&amp; !this.Page.IsPostBack)
    IsAjaxRequest is to True and this.Page.IsPostBack = false
    First, I don't understand when this case can occur !!
    I will continue to investigating.
    Thks
    Jerome
  2. #2

    RE: Bug in Page_AjaxLoadComplete(object sender, EventArgs e)

    More information,

    It occurs when






       if (Ext.IsAjaxRequest &amp;&amp; !this.Page.IsPostBack)
    I can't understand when this happens.

Similar Threads

  1. [CLOSED] fn vs Handler, eventargs in beforeedit event
    By mirwais in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 13, 2011, 10:44 AM
  2. Replies: 0
    Last Post: Oct 21, 2011, 3:04 AM
  3. Replies: 1
    Last Post: Sep 13, 2011, 5:19 PM
  4. How can i get event's sender in code behind?
    By lileltp in forum 1.x Help
    Replies: 1
    Last Post: Jun 25, 2009, 1:23 PM
  5. sender.ajaxEvents is undefined
    By Maia in forum 1.x Help
    Replies: 6
    Last Post: Jun 16, 2009, 8:08 PM

Posting Permissions