Conflict between ext:ResourceManager and asp:ScriptManager

  1. #1

    Conflict between ext:ResourceManager and asp:ScriptManager

    Hi!

    When add "<ext:ResourceManager runat="server" />" tag, I find it can not select "ENGLAND" in DropDownList1. If i don't want use ext:Combox, how to do it?

    TKS & B.RGDS
    Huahu

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            DropDownList1.Items.Add("USA");
            DropDownList1.Items.Add("ENGLAND");
        }
    
        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.DropDownList2.Items.Clear();
            switch (this.DropDownList1.SelectedValue)
            {
                case "USA":
                    this.DropDownList2.Items.Add("NewYork");
                    this.DropDownList2.Items.Add("Washington");
                    break;
                case "ENGLAND":
                    this.DropDownList2.Items.Add("London");
                    this.DropDownList2.Items.Add("Cambridge");
                    break;
            }
        }
        protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
        {
        }
    </script>
    <html>
    <head id="Head1" runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ResourceManager runat="server" />
            <asp:ScriptManager ID="ScriptManager1" runat="server" />
            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:DropDownList ID="DropDownList1" runat="server" 
                        AutoPostBack="True" 
                        OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" />
                    <asp:DropDownList ID="DropDownList2" runat="server"
                         AutoPostBack="True" 
                        OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged" />
                </ContentTemplate>
            </asp:UpdatePanel>
        </form>
    </body>
    </html>
  2. #2
    Hi,
    Conflict between ext:ResourceManager and asp:ScriptManager
    Is there any error?I run your code and not found any error.I think if your purpose is only populate a combobox with another then please see
    https://examples2.ext.net/#/Form/Com...Linked_Combos/
  3. #3
    I can't select "ENGLAND". When i select "ENGLAND", it seems like page reload and dropdownlist's select value turned to "USA" again
  4. #4
    Try to set up this setting for the ResourceManager, that would solve the problem.
    DisableViewState="false"
    By default, Ext.NET eliminates ViewState.

    You can close the thread
  5. #5
    We highly recommend not using the <asp:UpdatePanel>. It's not required. There is always a better solution.
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] AJaxControlToolkit and ExtJS conflict bug resurfaced
    By jlosi in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Oct 22, 2013, 4:55 AM
  2. Replies: 7
    Last Post: Apr 26, 2012, 5:39 PM
  3. Style sheet conflict
    By Dallas Morrison in forum 1.x Help
    Replies: 3
    Last Post: Feb 20, 2012, 3:43 AM
  4. Namespace Conflict for Class X?
    By mbean in forum 1.x Help
    Replies: 9
    Last Post: May 25, 2011, 1:31 PM

Posting Permissions