[FIXED] [V0.7] ScriptManager Bug

  1. #1

    [FIXED] [V0.7] ScriptManager Bug

    Hello,

    As of revision 899 the following is throwing an exception, I suspect it has something to do with the Theme property on the ext:ScriptManager tag:

    Example.aspx:
    <%@ Page Language="C#" %>
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            Store1.DataSource = new object[] {
                new object[] { 1, "Timothy", "Cool" }
            };
            Store1.DataBind();
        }
    
        protected void ComboBox1_Select(object sender, EventArgs e)
        {
    
        }
    
    </script>
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title>Example Page</title>
    </head>
    <body>
        <form id="Form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" />
        <ext:ScriptManager ID="ScriptManager2" runat="server" AjaxViewStateMode="Include" StateProvider="PostBack" Theme="Gray" />
        
        <ext:Store ID="Store1"
            runat="server"
            AutoLoad="True">
            <Reader>
                <ext:ArrayReader ReaderID="CustomerId">
                    <Fields>
                        <ext:RecordField Name="CustomerId" />
                        <ext:RecordField Name="Customer" />
                        <ext:RecordField Name="Value" />
                    </Fields>
                </ext:ArrayReader>
            </Reader>
        </ext:Store>
        <ext:ComboBox ID="ComboBox1"
            runat="server"
            StoreID="Store1"
            DisplayField="Customer"
            Mode="Local"
            ValueField="Value">
            <AjaxEvents>
                <Select OnEvent="ComboBox1_Select" />
            </AjaxEvents>
        </ext:ComboBox>
        
    
        </form>
    </body>
    </html>
    Replication steps:

    1. Load page
    2. Select value from ComboBox1
    3. Exception

    Resolution:

    1. Remove Theme="Gray" from ScriptManager
    2. Load page
    3. Select value from ComboBox1
    4. Works

    Cheers,
    Timothy
  2. #2

    RE: [FIXED] [V0.7] ScriptManager Bug

    fixed and committed to svn. 

    Thanks for code sample and I apologize for the error. 







    Geoffrey McGill
    Founder
  3. #3

    RE: [FIXED] [V0.7] ScriptManager Bug

    Confirmed, thanks.

    Cheers,
    Timothy

Similar Threads

  1. Replies: 2
    Last Post: Mar 17, 2010, 10:29 AM
  2. Replies: 2
    Last Post: Apr 21, 2009, 4:10 PM
  3. Replies: 5
    Last Post: Jan 27, 2009, 11:19 AM
  4. Replies: 1
    Last Post: Nov 22, 2008, 3:30 AM
  5. Replies: 2
    Last Post: Oct 03, 2008, 12:37 AM

Posting Permissions